Package org.citrusframework.http.server
Class AbstractHttpServerBuilder<T extends HttpServer,B extends AbstractHttpServerBuilder<T,B>>
java.lang.Object
org.citrusframework.endpoint.AbstractEndpointBuilder<T>
org.citrusframework.server.AbstractServerBuilder<T,B>
org.citrusframework.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 org.citrusframework.endpoint.EndpointBuilder
logger, RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthentication(String resourcePath, HttpAuthentication auth) binaryMediaTypes(List<org.springframework.http.MediaType> binaryMediaTypes) Sets the binaryMediaTypes.connector(org.eclipse.jetty.server.Connector connector) Sets the connector.connectors(List<org.eclipse.jetty.server.Connector> connectors) Sets the connectors.contextConfigLocation(String configLocation) Sets the context config location.contextPath(String contextPath) Sets the context path.defaultStatus(org.springframework.http.HttpStatus status) Sets the default status code property.filterMappings(Map<String, String> filterMappings) Sets the filterMappings.Sets the filters.protected ThandleAttributeHeaders(boolean flag) Sets the handleAttributeHeaders property.handleCookies(boolean flag) Sets the handleCookies property.interceptors(List<org.springframework.web.servlet.HandlerInterceptor> interceptors) Sets the interceptors.messageConverter(HttpMessageConverter messageConverter) Sets the message converter.port(int port) Sets the port property.resourceBase(String resourceBase) Sets the resource base.responseCacheSize(int size) Sets the default response cache size on this server instance.rootParentContext(boolean rootParentContext) Enables/disables the root parent context.secured(int securePort, HttpSecureConnection conn) secured(HttpSecureConnection conn) securePort(int port) Sets the secure port property.securityHandler(org.eclipse.jetty.security.SecurityHandler securityHandler) Sets the security handler.servletHandler(org.eclipse.jetty.servlet.ServletHandler servletHandler) Sets the servlet handler.servletMappingPath(String servletMappingPath) Sets the servlet mapping path.servletName(String servletName) Sets the servlet name.timeout(long timeout) Methods inherited from class org.citrusframework.server.AbstractServerBuilder
autoStart, debugLogging, endpointAdapterMethods inherited from class org.citrusframework.endpoint.AbstractEndpointBuilder
actor, build, initialize, name, referenceResolver, supportsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.endpoint.EndpointBuilder
build, build
-
Constructor Details
-
AbstractHttpServerBuilder
-
-
Method Details
-
getEndpoint
- Specified by:
getEndpointin classAbstractEndpointBuilder<T extends HttpServer>
-
port
Sets the port property.- Parameters:
port-- Returns:
-
securePort
Sets the secure port property.- Parameters:
port-- Returns:
-
contextConfigLocation
Sets the context config location.- Parameters:
configLocation-- Returns:
-
resourceBase
Sets the resource base.- Parameters:
resourceBase-- Returns:
-
rootParentContext
Enables/disables the root parent context.- Parameters:
rootParentContext-- Returns:
-
connectors
Sets the connectors.- Parameters:
connectors-- Returns:
-
connector
Sets the connector.- Parameters:
connector-- Returns:
-
filters
Sets the filters.- Parameters:
filters-- Returns:
-
filterMappings
Sets the filterMappings.- Parameters:
filterMappings-- Returns:
-
binaryMediaTypes
Sets the binaryMediaTypes.- Parameters:
binaryMediaTypes-- Returns:
-
servletName
Sets the servlet name.- Parameters:
servletName-- Returns:
-
servletMappingPath
Sets the servlet mapping path.- Parameters:
servletMappingPath-- Returns:
-
contextPath
Sets the context path.- Parameters:
contextPath-- Returns:
-
servletHandler
Sets the servlet handler.- Parameters:
servletHandler-- Returns:
-
securityHandler
Sets the security handler.- Parameters:
securityHandler-- Returns:
-
messageConverter
Sets the message converter.- Parameters:
messageConverter-- Returns:
-
handleAttributeHeaders
Sets the handleAttributeHeaders property.- Parameters:
flag-- Returns:
-
handleCookies
Sets the handleCookies property.- Parameters:
flag-- Returns:
-
defaultStatus
Sets the default status code property.- Parameters:
status-- Returns:
-
responseCacheSize
Sets the default response cache size on this server instance.- Parameters:
size-- Returns:
-
interceptors
Sets the interceptors.- Parameters:
interceptors-- Returns:
-
timeout
- Overrides:
timeoutin classAbstractServerBuilder<T extends HttpServer,B extends AbstractHttpServerBuilder<T, B>>
-
authentication
-
authentication
-
secured
-
secured
-