| Modifier and Type | Class and Description |
|---|---|
protected class |
SpincastUndertowServer.CorsHandler
Handler that will add cors headers, if required.
|
| Modifier and Type | Field and Description |
|---|---|
protected static io.undertow.util.HttpString |
HTTPSTRING_ACCESS_CONTROL_ALLOW_CREDENTIALS |
protected static io.undertow.util.HttpString |
HTTPSTRING_ACCESS_CONTROL_ALLOW_ORIGIN |
protected static io.undertow.util.HttpString |
HTTPSTRING_ACCESS_CONTROL_EXPOSE_HEADERS |
protected static io.undertow.util.HttpString |
HTTPSTRING_GET |
protected static io.undertow.util.HttpString |
HTTPSTRING_HEAD |
protected static io.undertow.util.HttpString |
HTTPSTRING_VARY |
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)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected io.undertow.Undertow.Builder |
addBuilderOptions(io.undertow.Undertow.Builder builder) |
void |
addCookies(Object exchange,
Map<String,ICookie> cookies) |
protected void |
addHttpListener(io.undertow.Undertow.Builder builder,
String serverHost,
int httpServerPort) |
protected void |
addHttpsListener(io.undertow.Undertow.Builder builder,
String serverHost,
int httpsServerPort) |
void |
addStaticResourceToServe(IStaticResource<?> staticResource) |
protected io.undertow.server.HttpServerExchange |
castExchange(Object exchange) |
void |
end(Object exchange) |
void |
flushBytes(Object exchange,
byte[] bytes,
boolean end) |
boolean |
forceRequestSizeValidation(Object exchangeObj) |
protected io.undertow.io.IoCallback |
getCloseExchangeCallback() |
protected ISpincastConfig |
getConfig() |
ContentTypeDefaults |
getContentTypeBestMatch(Object exchangeObj) |
protected String |
getCookieEncoding() |
protected ICookieFactory |
getCookieFactory() |
Map<String,ICookie> |
getCookies(Object exchange) |
protected io.undertow.io.IoCallback |
getDoNothingCallback() |
protected io.undertow.server.HttpHandler |
getFinalHandler() |
protected io.undertow.server.handlers.form.FormData |
getFormData(io.undertow.server.HttpServerExchange exchange)
May return NULL.
|
Map<String,List<String>> |
getFormDatas(Object exchangeObj) |
protected io.undertow.server.handlers.form.FormParserFactory |
getFormParserFactory() |
protected IFrontController |
getFrontController() |
String |
getFullUrl(Object exchangeObj) |
HttpMethod |
getHttpMethod(Object exchange) |
Map<String,List<String>> |
getQueryStringParams(Object exchange) |
InputStream |
getRawInputStream(Object exchangeObj) |
Map<String,List<String>> |
getRequestHeaders(Object exchangeObj) |
String |
getRequestScheme(Object exchange) |
Map<String,List<String>> |
getResponseHeaders(Object exchangeObj) |
protected io.undertow.Undertow.Builder |
getServerBuilder() |
protected io.undertow.server.HttpHandler |
getSpincastFrontControllerHandler() |
protected ISpincastUtils |
getSpincastUtils() |
protected ISSLContextManager |
getSslContextManager() |
IStaticResource<?> |
getStaticResourceServed(String urlPath) |
protected io.undertow.server.handlers.PathHandler |
getStaticResourcesPathHandler() |
Set<IStaticResource<?>> |
getStaticResourcesServed() |
protected Map<String,IStaticResource<?>> |
getStaticResourcesServedByUrlPath() |
Map<String,List<File>> |
getUploadedFiles(Object exchangeObj) |
boolean |
isResponseClosed(Object exchange) |
boolean |
isResponseHeadersSent(Object exchange) |
void |
removeAllStaticResourcesServed() |
void |
removeResponseHeader(Object exchange,
String name) |
protected void |
removeStaticResource(StaticResourceType staticResourceType,
String urlPath) |
void |
removeStaticResourcesServed(StaticResourceType staticResourceType,
String urlPath) |
void |
setResponseHeader(Object exchangeObj,
String name,
List<String> values) |
void |
setResponseHeaders(Object exchange,
Map<String,List<String>> headers) |
void |
setResponseStatusCode(Object exchange,
int statusCode) |
void |
start() |
void |
stop() |
protected final org.slf4j.Logger logger
public static final String UNDERTOW_EXCEPTION_CODE_REQUEST_TOO_LARGE
protected static final io.undertow.util.HttpString HTTPSTRING_GET
protected static final io.undertow.util.HttpString HTTPSTRING_HEAD
protected static final io.undertow.util.HttpString HTTPSTRING_VARY
protected static final io.undertow.util.HttpString HTTPSTRING_ACCESS_CONTROL_ALLOW_ORIGIN
protected static final io.undertow.util.HttpString HTTPSTRING_ACCESS_CONTROL_ALLOW_CREDENTIALS
protected static final io.undertow.util.HttpString HTTPSTRING_ACCESS_CONTROL_EXPOSE_HEADERS
@Inject public SpincastUndertowServer(ISpincastConfig config, IFrontController frontController, ISpincastUtils spincastUtils, ICookieFactory cookieFactory, ISSLContextManager sslContextManager)
protected ISpincastConfig getConfig()
protected IFrontController getFrontController()
protected ISpincastUtils getSpincastUtils()
protected ICookieFactory getCookieFactory()
protected ISSLContextManager getSslContextManager()
protected Map<String,IStaticResource<?>> getStaticResourcesServedByUrlPath()
protected io.undertow.server.handlers.form.FormParserFactory getFormParserFactory()
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.