Class AbstractUrlClient
java.lang.Object
ee.jakarta.tck.pages.common.client.BaseUrlClient
ee.jakarta.tck.pages.common.client.AbstractUrlClient
- Direct Known Subclasses:
URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT,URLClientIT
Base client for JSP tests.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringIdentifier for a set of properties to be used for API Tests.protected static final StringAlternate API test identifier,protected InputStreamFields 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 TypeMethodDescriptionprotected booleanisNullOrEmpty(String val) voidsetGoldenFileStream(InputStream gfStream) voidsetTestJsp(String jsp) Sets the name of the JSP when building the request.protected voidsetTestProperties(WebTestCase testCase) Sets the test properties for this testCase.voidsetup()static StringtoString(InputStream inStream) Methods inherited from class ee.jakarta.tck.pages.common.client.BaseUrlClient
cleanup, getContextRoot, invoke, setContextRoot, setGeneralURI, setGoldenFileDir, setTestDir, setup
-
Field Details
-
url
-
APITEST
Identifier for a set of properties to be used for API Tests.- See Also:
-
APITEST1
Alternate API test identifier,- See Also:
-
goldenFileStream
-
-
Constructor Details
-
AbstractUrlClient
public AbstractUrlClient()
-
-
Method Details
-
getGoldenFileStream
-
setGoldenFileStream
-
setTestProperties
Sets the test properties for this testCase.- Overrides:
setTestPropertiesin classBaseUrlClient- Parameters:
testCase- - the current test case
-
isNullOrEmpty
-
setup
- Throws:
Exception
-
setTestJsp
Sets the name of the JSP when building the request.- Parameters:
jsp- - JSP name
-
toString
- Throws:
IOException
-