Class AbstractUrlClient

java.lang.Object
com.sun.ts.tests.common.webclient.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

public abstract class AbstractUrlClient extends com.sun.ts.tests.common.webclient.BaseUrlClient
Base client for JSP tests.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
    Identifier for a set of properties to be used for API Tests.
    protected static final String
    Alternate API test identifier,
    protected InputStream
     
     

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected boolean
     
    void
     
    void
    Sets the name of the JSP when building the request.
    protected void
    setTestProperties(com.sun.ts.tests.common.webclient.WebTestCase testCase)
    Sets the test properties for this testCase.
    void
     
    static String
     

    Methods inherited from class com.sun.ts.tests.common.webclient.BaseUrlClient

    cleanup, getContextRoot, invoke, run, setContextRoot, setGeneralURI, setGoldenFileDir, setTestDir, setup

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • url

      @ArquillianResource @OperateOnDeployment("_DEFAULT_") public URL url
    • APITEST

      protected static final String APITEST
      Identifier for a set of properties to be used for API Tests.
      See Also:
    • APITEST1

      protected static final String APITEST1
      Alternate API test identifier,
      See Also:
    • goldenFileStream

      protected InputStream goldenFileStream
  • Constructor Details

    • AbstractUrlClient

      public AbstractUrlClient()
  • Method Details

    • getGoldenFileStream

      public InputStream getGoldenFileStream()
    • setGoldenFileStream

      public void setGoldenFileStream(InputStream gfStream)
    • setTestProperties

      protected void setTestProperties(com.sun.ts.tests.common.webclient.WebTestCase testCase)
      Sets the test properties for this testCase.
      Overrides:
      setTestProperties in class com.sun.ts.tests.common.webclient.BaseUrlClient
      Parameters:
      testCase - - the current test case
    • isNullOrEmpty

      protected boolean isNullOrEmpty(String val)
    • setup

      @BeforeEach public void setup() throws Exception
      Throws:
      Exception
    • setTestJsp

      public void setTestJsp(String jsp)
      Sets the name of the JSP when building the request.
      Parameters:
      jsp - - JSP name
    • toString

      public static String toString(InputStream inStream) throws IOException
      Throws:
      IOException