Class ServletAbstractUrlClient
java.lang.Object
com.sun.ts.tests.common.webclient.BaseUrlClient
ee.jakarta.tck.pages.common.client.ServletAbstractUrlClient
public abstract class ServletAbstractUrlClient
extends com.sun.ts.tests.common.webclient.BaseUrlClient
Base client for Servlet tests.
-
Field Summary
FieldsFields inherited from class com.sun.ts.tests.common.webclient.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 StringgetLocalInterfaceInfo(boolean returnAddresses) protected StringgetRequest(String rq) protected Stringprotected URLprotected StringgetURLString(String protocol, String hostname, int portnum, String sContext) protected voidsetServletName(String servlet) Sets the name of the servlet to use when building a request for a single servlet API test.protected voidsetTestProperties(com.sun.ts.tests.common.webclient.WebTestCase testCase) voidsetup()Methods inherited from class com.sun.ts.tests.common.webclient.BaseUrlClient
cleanup, getContextRoot, invoke, run, setContextRoot, setGeneralURI, setGoldenFileDir, setTestDir, setup
-
Field Details
-
APITEST
- See Also:
-
DONOTUSEServletName
- See Also:
-
url
-
-
Constructor Details
-
ServletAbstractUrlClient
protected ServletAbstractUrlClient()
-
-
Method Details
-
setTestProperties
protected void setTestProperties(com.sun.ts.tests.common.webclient.WebTestCase testCase) - Overrides:
setTestPropertiesin classcom.sun.ts.tests.common.webclient.BaseUrlClient
-
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
-