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:
com.consol.citrus.endpoint.EndpointBuilder<T>
- Direct Known Subclasses:
HttpServerBuilder
public class AbstractHttpServerBuilder<T extends HttpServer,B extends AbstractHttpServerBuilder<T,B>> extends com.consol.citrus.server.AbstractServerBuilder<T,B>- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractHttpServerBuilder(T server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BbinaryMediaTypes(List<org.springframework.http.MediaType> binaryMediaTypes)Sets the binaryMediaTypes.Bconnector(org.eclipse.jetty.server.Connector connector)Sets the connector.Bconnectors(List<org.eclipse.jetty.server.Connector> connectors)Sets the connectors.BcontextConfigLocation(String configLocation)Sets the context config location.BcontextPath(String contextPath)Sets the context path.BdefaultStatus(org.springframework.http.HttpStatus status)Sets the default status code property.BfilterMappings(Map<String,String> filterMappings)Sets the filterMappings.Bfilters(Map<String,javax.servlet.Filter> filters)Sets the filters.protected TgetEndpoint()BhandleAttributeHeaders(boolean flag)Sets the handleAttributeHeaders property.BhandleCookies(boolean flag)Sets the handleCookies property.Binterceptors(List<org.springframework.web.servlet.HandlerInterceptor> interceptors)Sets the interceptors.BmessageConverter(HttpMessageConverter messageConverter)Sets the message converter.Bport(int port)Sets the port property.BresourceBase(String resourceBase)Sets the resource base.BresponseCacheSize(int size)Sets the default response cache size on this server instance.BrootParentContext(boolean rootParentContext)Enables/disables the root parent context.BsecurityHandler(org.eclipse.jetty.security.SecurityHandler securityHandler)Sets the security handler.BservletHandler(org.eclipse.jetty.servlet.ServletHandler servletHandler)Sets the servlet handler.BservletMappingPath(String servletMappingPath)Sets the servlet mapping path.BservletName(String servletName)Sets the servlet name.Btimeout(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
-
-
-
-
Constructor Detail
-
AbstractHttpServerBuilder
protected AbstractHttpServerBuilder(T server)
-
-
Method Detail
-
getEndpoint
protected T getEndpoint()
- Specified by:
getEndpointin classcom.consol.citrus.endpoint.AbstractEndpointBuilder<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:
timeoutin classcom.consol.citrus.server.AbstractServerBuilder<T extends HttpServer,B extends AbstractHttpServerBuilder<T,B>>
-
-