Class AbstractServletHttpServerImplementationTest
- java.lang.Object
-
- net.officefloor.server.http.AbstractHttpServerImplementationTestCase
-
- net.officefloor.server.servlet.test.AbstractServletHttpServerImplementationTest
-
public abstract class AbstractServletHttpServerImplementationTest extends net.officefloor.server.http.AbstractHttpServerImplementationTestCaseProvide abstract test functionality for testing withHttpServlet.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractServletHttpServerImplementationTest.FixHeadersFilterFilterto fix theHttpHeaderinstances.protected static classAbstractServletHttpServerImplementationTest.ServerContextContext for configuring theServer.-
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
-
-
Constructor Summary
Constructors Constructor Description AbstractServletHttpServerImplementationTest()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidconfigureServer(AbstractServletHttpServerImplementationTest.ServerContext context)Configures theServer.static org.eclipse.jetty.server.ServercreateServer(net.officefloor.server.http.HttpServerLocation serverLocation, javax.net.ssl.SSLContext sslContext)Creates theServerfor theHttpServerLocation.protected net.officefloor.server.http.HttpHeader[]getServerResponseHeaderValues()protected booleanisHandleCancel()protected java.lang.AutoCloseablestartHttpServer(net.officefloor.compile.spi.officefloor.extension.OfficeFloorExtensionService officeFloorExtension, net.officefloor.compile.spi.office.extension.OfficeExtensionService officeExtension)protected java.lang.AutoCloseablestartRawHttpServer(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
-
-
-
-
Method Detail
-
createServer
public static org.eclipse.jetty.server.Server createServer(net.officefloor.server.http.HttpServerLocation serverLocation, javax.net.ssl.SSLContext sslContext)Creates theServerfor theHttpServerLocation.- Parameters:
serverLocation-HttpServerLocation.sslContext-SSLContext. May benullif no HTTPS required.- Returns:
- Configured but not started
Server.
-
configureServer
protected abstract void configureServer(AbstractServletHttpServerImplementationTest.ServerContext context) throws java.lang.Exception
Configures theServer.- Parameters:
context-AbstractServletHttpServerImplementationTest.ServerContext.- Throws:
java.lang.Exception- If fails to configureServer.
-
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:
startHttpServerin classnet.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:
startRawHttpServerin classnet.officefloor.server.http.AbstractHttpServerImplementationTestCase- Throws:
java.lang.Exception
-
getServerResponseHeaderValues
protected net.officefloor.server.http.HttpHeader[] getServerResponseHeaderValues()
- Specified by:
getServerResponseHeaderValuesin classnet.officefloor.server.http.AbstractHttpServerImplementationTestCase
-
isHandleCancel
protected boolean isHandleCancel()
- Overrides:
isHandleCancelin classnet.officefloor.server.http.AbstractHttpServerImplementationTestCase
-
-