| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
static String |
UNDERTOW_EXCEPTION_CODE_REQUEST_TOO_LARGE |
| Constructor and Description |
|---|
SpincastUndertowServer(ISpincastConfig config,
IFrontController frontController,
ISpincastUtils spincastUtils,
ICookieFactory cookieFactory,
ISSLContextManager sslContextManager,
ICorsHandlerFactory corsHandlerFactory,
IGzipCheckerHandlerFactory gzipCheckerHandlerFactory,
IFileClassPathResourceManagerFactory fileClassPathResourceManagerFactory)
Constructor
|
protected final org.slf4j.Logger logger
public static final String UNDERTOW_EXCEPTION_CODE_REQUEST_TOO_LARGE
@Inject public SpincastUndertowServer(ISpincastConfig config, IFrontController frontController, ISpincastUtils spincastUtils, ICookieFactory cookieFactory, ISSLContextManager sslContextManager, ICorsHandlerFactory corsHandlerFactory, IGzipCheckerHandlerFactory gzipCheckerHandlerFactory, IFileClassPathResourceManagerFactory fileClassPathResourceManagerFactory)
protected ISpincastConfig getConfig()
protected IFrontController getFrontController()
protected ISpincastUtils getSpincastUtils()
protected ICookieFactory getCookieFactory()
protected ISSLContextManager getSslContextManager()
protected ICorsHandlerFactory getCorsHandlerFactory()
protected IGzipCheckerHandlerFactory getGzipCheckerHandlerFactory()
protected IFileClassPathResourceManagerFactory getFileClassPathResourceManagerFactory()
protected Map<String,IStaticResource<?>> getStaticResourcesServedByUrlPath()
protected io.undertow.server.handlers.form.FormParserFactory getFormParserFactory()
protected int getServerStartTryNbr()
protected long getStartServerSleepMilliseconds()
protected io.undertow.Undertow.Builder getServerBuilder()
protected void addHttpListener(io.undertow.Undertow.Builder builder,
String serverHost,
int httpServerPort)
protected void addHttpsListener(io.undertow.Undertow.Builder builder,
String serverHost,
int httpsServerPort)
protected io.undertow.Undertow.Builder addBuilderOptions(io.undertow.Undertow.Builder builder)
protected io.undertow.server.HttpHandler getFinalHandler()
protected io.undertow.server.HttpHandler getSpincastFrontControllerHandler()
protected io.undertow.server.handlers.PathHandler getStaticResourcesPathHandler()
public void addStaticResourceToServe(IStaticResource<?> staticResource)
addStaticResourceToServe in interface IServerpublic void removeStaticResourcesServed(StaticResourceType staticResourceType, String urlPath)
removeStaticResourcesServed in interface IServerpublic void removeAllStaticResourcesServed()
removeAllStaticResourcesServed in interface IServerprotected void removeStaticResource(StaticResourceType staticResourceType, String urlPath)
public IStaticResource<?> getStaticResourceServed(String urlPath)
getStaticResourceServed in interface IServerpublic Set<IStaticResource<?>> getStaticResourcesServed()
getStaticResourcesServed in interface IServerpublic HttpMethod getHttpMethod(Object exchange)
getHttpMethod in interface IServerprotected io.undertow.server.HttpServerExchange castExchange(Object exchange)
public ContentTypeDefaults getContentTypeBestMatch(Object exchangeObj)
getContentTypeBestMatch in interface IServerpublic String getFullUrl(Object exchangeObj)
getFullUrl in interface IServerpublic void setResponseHeader(Object exchangeObj, String name, List<String> values)
setResponseHeader in interface IServerpublic void setResponseHeaders(Object exchange, Map<String,List<String>> headers)
setResponseHeaders in interface IServerpublic Map<String,List<String>> getResponseHeaders(Object exchangeObj)
getResponseHeaders in interface IServerpublic void removeResponseHeader(Object exchange, String name)
removeResponseHeader in interface IServerpublic void setResponseStatusCode(Object exchange, int statusCode)
setResponseStatusCode in interface IServerprotected io.undertow.io.IoCallback getDoNothingCallback()
protected io.undertow.io.IoCallback getCloseExchangeCallback()
public void flushBytes(Object exchange, byte[] bytes, boolean end)
flushBytes in interface IServerpublic boolean isResponseClosed(Object exchange)
isResponseClosed in interface IServerpublic boolean isResponseHeadersSent(Object exchange)
isResponseHeadersSent in interface IServerpublic String getRequestScheme(Object exchange)
getRequestScheme in interface IServerpublic void addCookies(Object exchange, Map<String,ICookie> cookies)
addCookies in interface IServerpublic Map<String,ICookie> getCookies(Object exchange)
getCookies in interface IServerprotected String getCookieEncoding()
public Map<String,List<String>> getQueryStringParams(Object exchange)
getQueryStringParams in interface IServerpublic InputStream getRawInputStream(Object exchangeObj)
getRawInputStream in interface IServerprotected io.undertow.server.handlers.form.FormData getFormData(io.undertow.server.HttpServerExchange exchange)
public Map<String,List<String>> getFormDatas(Object exchangeObj)
getFormDatas in interface IServerpublic Map<String,List<File>> getUploadedFiles(Object exchangeObj)
getUploadedFiles in interface IServerpublic boolean forceRequestSizeValidation(Object exchangeObj)
forceRequestSizeValidation in interface IServerCopyright © 2016. All rights reserved.