Class AbstractServletHttpServerImplementationTest


  • public abstract class AbstractServletHttpServerImplementationTest
    extends net.officefloor.server.http.AbstractHttpServerImplementationTestCase
    Provide abstract test functionality for testing with HttpServlet.
    Author:
    Daniel Sagenschneider
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AbstractServletHttpServerImplementationTest.FixHeadersFilter
      Filter to fix the HttpHeader instances.
      protected static class  AbstractServletHttpServerImplementationTest.ServerContext
      Context for configuring the Server.
      • Nested classes/interfaces inherited from class net.officefloor.server.http.AbstractHttpServerImplementationTestCase

        net.officefloor.server.http.AbstractHttpServerImplementationTestCase.AsyncServicer, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.BufferServicer, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.BytesServicer, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.CancelConnectionManagedObjectSource, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.CancelConnectionServicer, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.CloseFileServicer, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.CompareResult, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.EncodedUrlServicer, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.FailServicer, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.FileServicer, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.FunctionalityServicer, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.PipelineResult, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.PressureOverloadServicer, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.Servicer, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.TeamMarker, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.TeamTwoMarker, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.ThreadedManagedObject, net.officefloor.server.http.AbstractHttpServerImplementationTestCase.ThreadedServicer
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void configureServer​(AbstractServletHttpServerImplementationTest.ServerContext context)
      Configures the Server.
      static org.eclipse.jetty.server.Server createServer​(net.officefloor.server.http.HttpServerLocation serverLocation, javax.net.ssl.SSLContext sslContext)
      Creates the Server for the HttpServerLocation.
      protected net.officefloor.server.http.HttpHeader[] getServerResponseHeaderValues()  
      protected boolean isHandleCancel()  
      protected java.lang.AutoCloseable startHttpServer​(net.officefloor.compile.spi.officefloor.extension.OfficeFloorExtensionService officeFloorExtension, net.officefloor.compile.spi.office.extension.OfficeExtensionService officeExtension)  
      protected java.lang.AutoCloseable startRawHttpServer​(net.officefloor.server.http.HttpServerLocation serverLocation)  
      • Methods inherited from class net.officefloor.server.http.AbstractHttpServerImplementationTestCase

        async, bufferHeavyLoad, bufferOverLoad, bufferPipelineVerify, bufferPipelining, bufferThreadedHandler, bytesHeavyLoad, bytesOverLoad, bytesPipelineVerify, bytesPipelining, bytesThreadedHandler, cancelConnection, doMultiClientLoadTest, doPipelineVerifyTest, fileHeavyLoad, fileOverLoad, filePipelineVerify, filePipelining, fileThreadedHandler, functionality, getHttpServerImplementationClass, getRequestCount, getServerName, getServerNameSuffix, handleError, multipleIndividualRequests, multipleIndividualSecureRequests, newHttpHeader, notDecodeRequestUrl, rawHeavyLoad, rawOverLoad, rawPipelineVerify, rawPipelining, rawSingleRequest, rawThreadedHandler, secureCancelConnection, secureSingleThreadedHandlerRequest, secureSocket, serverDateHeaders, setUp, singleBufferRequest, singleCloseFileRequest, singleFileRequest, singleRequest, singleSecureBufferRequest, singleSecureCloseFileRequest, singleSecureFileRequest, singleSecureRequest, singleThreadedHandlerRequest, socket, startHttpServer, startHttpServer, teamPressureOverload, tearDown
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractServletHttpServerImplementationTest

        public AbstractServletHttpServerImplementationTest()
    • Method Detail

      • createServer

        public static org.eclipse.jetty.server.Server createServer​(net.officefloor.server.http.HttpServerLocation serverLocation,
                                                                   javax.net.ssl.SSLContext sslContext)
        Creates the Server for the HttpServerLocation.
        Parameters:
        serverLocation - HttpServerLocation.
        sslContext - SSLContext. May be null if no HTTPS required.
        Returns:
        Configured but not started Server.
      • startHttpServer

        protected java.lang.AutoCloseable startHttpServer​(net.officefloor.compile.spi.officefloor.extension.OfficeFloorExtensionService officeFloorExtension,
                                                          net.officefloor.compile.spi.office.extension.OfficeExtensionService officeExtension)
                                                   throws java.lang.Exception
        Overrides:
        startHttpServer in class net.officefloor.server.http.AbstractHttpServerImplementationTestCase
        Throws:
        java.lang.Exception
      • startRawHttpServer

        protected java.lang.AutoCloseable startRawHttpServer​(net.officefloor.server.http.HttpServerLocation serverLocation)
                                                      throws java.lang.Exception
        Specified by:
        startRawHttpServer in class net.officefloor.server.http.AbstractHttpServerImplementationTestCase
        Throws:
        java.lang.Exception
      • getServerResponseHeaderValues

        protected net.officefloor.server.http.HttpHeader[] getServerResponseHeaderValues()
        Specified by:
        getServerResponseHeaderValues in class net.officefloor.server.http.AbstractHttpServerImplementationTestCase
      • isHandleCancel

        protected boolean isHandleCancel()
        Overrides:
        isHandleCancel in class net.officefloor.server.http.AbstractHttpServerImplementationTestCase