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

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
    protected static final String
     
     

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

    Modifier and Type
    Method
    Description
     
    protected String
    getLocalInterfaceInfo(boolean returnAddresses)
     
    protected String
     
    protected String
     
    protected URL
    getURL(String protocol, String hostname, int portnum, String sContext)
     
    protected String
    getURLString(String protocol, String hostname, int portnum, String sContext)
     
    protected void
    Sets the name of the servlet to use when building a request for a single servlet API test.
    protected void
    setTestProperties(com.sun.ts.tests.common.webclient.WebTestCase testCase)
     
    void
     

    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

  • Constructor Details

    • ServletAbstractUrlClient

      protected ServletAbstractUrlClient()
  • Method Details

    • setTestProperties

      protected void setTestProperties(com.sun.ts.tests.common.webclient.WebTestCase testCase)
      Overrides:
      setTestProperties in class com.sun.ts.tests.common.webclient.BaseUrlClient
    • setup

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

      protected void setServletName(String servlet)
      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

      protected String getServletName()
    • getLocalInterfaceInfo

      protected String getLocalInterfaceInfo(boolean returnAddresses)
    • getRequest

      protected String getRequest(String rq)
    • getURLString

      protected String getURLString(String protocol, String hostname, int portnum, String sContext)
    • getURL

      protected URL getURL(String protocol, String hostname, int portnum, String sContext) throws MalformedURLException
      Throws:
      MalformedURLException
    • getHttpsURLConnection

      public URLConnection getHttpsURLConnection(URL newURL) throws IOException
      Throws:
      IOException