Class ServletAbstractUrlClient
java.lang.Object
ee.jakarta.tck.pages.common.client.BaseUrlClient
ee.jakarta.tck.pages.common.client.ServletAbstractUrlClient
Base client for Servlet tests.
-
Field Summary
FieldsFields inherited from class ee.jakarta.tck.pages.common.client.BaseUrlClient
_contextRoot, _generalURI, _hostname, _port, _props, _redirect, _saveState, _state, _testCase, _testName, _tsHome, _useSavedState, BASIC_AUTH_PASSWD, BASIC_AUTH_REALM, BASIC_AUTH_USER, CONTENT, CONTINUE, CREATED, EXPECT_RESPONSE_BODY, EXPECTED_HEADERS, FOLLOW_REDIRECT, FORBIDDEN, GET, GF_SUFFIX, GOLDENFILE, GOLDENFILEDIR, GONE, HTTP10, HTTP11, IGNORE_BODY, IGNORE_STATUS_CODE, INTERNAL_SERVER_ERROR, JSP_SUFFIX, LENGTH_REQUIRED, MOVED_TEMPORARY, NOT_FOUND, OK, REASON_PHRASE, REQUEST, REQUEST_HEADERS, RESPONSE_MATCH, SAVE_STATE, SEARCH_STRING, SEARCH_STRING_IGNORE_CASE, SERVICE_UNAVAILABLE, SERVLETHOSTPROP, SERVLETPORTPROP, SL, STANDARD, STATUS_CODE, STRATEGY, TEST_NAME, TEST_PROPS, TESTDIR, TSHOME, UNAUTHORIZED, UNEXPECTED_HEADERS, UNEXPECTED_RESPONSE_MATCH, UNORDERED_SEARCH_STRING, USE_SAVED_STATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHttpsURLConnection
(URL newURL) protected String
getLocalInterfaceInfo
(boolean returnAddresses) protected String
getRequest
(String rq) protected String
protected URL
protected String
getURLString
(String protocol, String hostname, int portnum, String sContext) protected void
setServletName
(String servlet) Sets the name of the servlet to use when building a request for a single servlet API test.protected void
setTestProperties
(WebTestCase testCase) Sets the appropriate test properties based on the values stored in TEST_PROPSvoid
setup()
Methods inherited from class ee.jakarta.tck.pages.common.client.BaseUrlClient
cleanup, getContextRoot, invoke, setContextRoot, setGeneralURI, setGoldenFileDir, setTestDir, setup
-
Field Details
-
APITEST
- See Also:
-
DONOTUSEServletName
- See Also:
-
url
-
-
Constructor Details
-
ServletAbstractUrlClient
protected ServletAbstractUrlClient()
-
-
Method Details
-
setTestProperties
Description copied from class:BaseUrlClient
Sets the appropriate test properties based on the values stored in TEST_PROPS
- Overrides:
setTestProperties
in classBaseUrlClient
-
setup
- Throws:
Exception
-
setServletName
Sets the name of the servlet to use when building a request for a single servlet API test.- Parameters:
servlet
- - the name of the servlet
-
getServletName
-
getLocalInterfaceInfo
-
getRequest
-
getURLString
-
getURL
protected URL getURL(String protocol, String hostname, int portnum, String sContext) throws MalformedURLException - Throws:
MalformedURLException
-
getHttpsURLConnection
- Throws:
IOException
-