Package com.consol.citrus.http.server
Class AbstractHttpServerBuilder<T extends HttpServer,B extends AbstractHttpServerBuilder<T,B>>
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointBuilder<T>
-
- com.consol.citrus.server.AbstractServerBuilder<T,B>
-
- com.consol.citrus.http.server.AbstractHttpServerBuilder<T,B>
-
- All Implemented Interfaces:
EndpointBuilder<T>
- Direct Known Subclasses:
HttpServerBuilder
public class AbstractHttpServerBuilder<T extends HttpServer,B extends AbstractHttpServerBuilder<T,B>> extends AbstractServerBuilder<T,B>
- Author:
- Christoph Deppisch
-
-
Field Summary
-
Fields inherited from interface com.consol.citrus.endpoint.EndpointBuilder
LOG, RESOURCE_PATH, TYPE_RESOLVER
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractHttpServerBuilder(T server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B
binaryMediaTypes(List<org.springframework.http.MediaType> binaryMediaTypes)
Sets the binaryMediaTypes.B
connector(org.eclipse.jetty.server.Connector connector)
Sets the connector.B
connectors(List<org.eclipse.jetty.server.Connector> connectors)
Sets the connectors.B
contextConfigLocation(String configLocation)
Sets the context config location.B
contextPath(String contextPath)
Sets the context path.B
defaultStatus(org.springframework.http.HttpStatus status)
Sets the default status code property.B
filterMappings(Map<String,String> filterMappings)
Sets the filterMappings.B
filters(Map<String,javax.servlet.Filter> filters)
Sets the filters.protected T
getEndpoint()
B
handleAttributeHeaders(boolean flag)
Sets the handleAttributeHeaders property.B
handleCookies(boolean flag)
Sets the handleCookies property.B
interceptors(List<org.springframework.web.servlet.HandlerInterceptor> interceptors)
Sets the interceptors.B
messageConverter(HttpMessageConverter messageConverter)
Sets the message converter.B
port(int port)
Sets the port property.B
resourceBase(String resourceBase)
Sets the resource base.B
responseCacheSize(int size)
Sets the default response cache size on this server instance.B
rootParentContext(boolean rootParentContext)
Enables/disables the root parent context.B
securityHandler(org.eclipse.jetty.security.SecurityHandler securityHandler)
Sets the security handler.B
servletHandler(org.eclipse.jetty.servlet.ServletHandler servletHandler)
Sets the servlet handler.B
servletMappingPath(String servletMappingPath)
Sets the servlet mapping path.B
servletName(String servletName)
Sets the servlet name.B
timeout(long timeout)
-
Methods inherited from class com.consol.citrus.server.AbstractServerBuilder
autoStart, debugLogging, endpointAdapter
-
Methods inherited from class com.consol.citrus.endpoint.AbstractEndpointBuilder
actor, build, initialize, name, referenceResolver, supports
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.consol.citrus.endpoint.EndpointBuilder
build, build
-
-
-
-
Constructor Detail
-
AbstractHttpServerBuilder
protected AbstractHttpServerBuilder(T server)
-
-
Method Detail
-
getEndpoint
protected T getEndpoint()
- Specified by:
getEndpoint
in classAbstractEndpointBuilder<T extends HttpServer>
-
port
public B port(int port)
Sets the port property.- Parameters:
port
-- Returns:
-
contextConfigLocation
public B contextConfigLocation(String configLocation)
Sets the context config location.- Parameters:
configLocation
-- Returns:
-
resourceBase
public B resourceBase(String resourceBase)
Sets the resource base.- Parameters:
resourceBase
-- Returns:
-
rootParentContext
public B rootParentContext(boolean rootParentContext)
Enables/disables the root parent context.- Parameters:
rootParentContext
-- Returns:
-
connectors
public B connectors(List<org.eclipse.jetty.server.Connector> connectors)
Sets the connectors.- Parameters:
connectors
-- Returns:
-
connector
public B connector(org.eclipse.jetty.server.Connector connector)
Sets the connector.- Parameters:
connector
-- Returns:
-
filters
public B filters(Map<String,javax.servlet.Filter> filters)
Sets the filters.- Parameters:
filters
-- Returns:
-
filterMappings
public B filterMappings(Map<String,String> filterMappings)
Sets the filterMappings.- Parameters:
filterMappings
-- Returns:
-
binaryMediaTypes
public B binaryMediaTypes(List<org.springframework.http.MediaType> binaryMediaTypes)
Sets the binaryMediaTypes.- Parameters:
binaryMediaTypes
-- Returns:
-
servletName
public B servletName(String servletName)
Sets the servlet name.- Parameters:
servletName
-- Returns:
-
servletMappingPath
public B servletMappingPath(String servletMappingPath)
Sets the servlet mapping path.- Parameters:
servletMappingPath
-- Returns:
-
contextPath
public B contextPath(String contextPath)
Sets the context path.- Parameters:
contextPath
-- Returns:
-
servletHandler
public B servletHandler(org.eclipse.jetty.servlet.ServletHandler servletHandler)
Sets the servlet handler.- Parameters:
servletHandler
-- Returns:
-
securityHandler
public B securityHandler(org.eclipse.jetty.security.SecurityHandler securityHandler)
Sets the security handler.- Parameters:
securityHandler
-- Returns:
-
messageConverter
public B messageConverter(HttpMessageConverter messageConverter)
Sets the message converter.- Parameters:
messageConverter
-- Returns:
-
handleAttributeHeaders
public B handleAttributeHeaders(boolean flag)
Sets the handleAttributeHeaders property.- Parameters:
flag
-- Returns:
-
handleCookies
public B handleCookies(boolean flag)
Sets the handleCookies property.- Parameters:
flag
-- Returns:
-
defaultStatus
public B defaultStatus(org.springframework.http.HttpStatus status)
Sets the default status code property.- Parameters:
status
-- Returns:
-
responseCacheSize
public B responseCacheSize(int size)
Sets the default response cache size on this server instance.- Parameters:
size
-- Returns:
-
interceptors
public B interceptors(List<org.springframework.web.servlet.HandlerInterceptor> interceptors)
Sets the interceptors.- Parameters:
interceptors
-- Returns:
-
timeout
public B timeout(long timeout)
- Overrides:
timeout
in classAbstractServerBuilder<T extends HttpServer,B extends AbstractHttpServerBuilder<T,B>>
-
-