| 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,
ISpincastUndertowConfig spincastUndertowConfig,
IFrontController frontController,
ISpincastUtils spincastUtils,
ICookieFactory cookieFactory,
ICorsHandlerFactory corsHandlerFactory,
IGzipCheckerHandlerFactory gzipCheckerHandlerFactory,
ISpincastResourceHandlerFactory spincastResourceHandlerFactory,
ICacheBusterRemovalHandlerFactory cacheBusterRemovalHandlerFactory,
IFileClassPathResourceManagerFactory fileClassPathResourceManagerFactory,
ISpincastHttpAuthIdentityManagerFactory spincastHttpAuthIdentityManagerFactory,
IWebsocketEndpointFactory spincastWebsocketEndpointFactory,
ISSLContextFactory sslContextFactory)
Constructor
|
protected final org.slf4j.Logger logger
public static final String UNDERTOW_EXCEPTION_CODE_REQUEST_TOO_LARGE
@Inject public SpincastUndertowServer(ISpincastConfig config, ISpincastUndertowConfig spincastUndertowConfig, IFrontController frontController, ISpincastUtils spincastUtils, ICookieFactory cookieFactory, ICorsHandlerFactory corsHandlerFactory, IGzipCheckerHandlerFactory gzipCheckerHandlerFactory, ISpincastResourceHandlerFactory spincastResourceHandlerFactory, ICacheBusterRemovalHandlerFactory cacheBusterRemovalHandlerFactory, IFileClassPathResourceManagerFactory fileClassPathResourceManagerFactory, ISpincastHttpAuthIdentityManagerFactory spincastHttpAuthIdentityManagerFactory, IWebsocketEndpointFactory spincastWebsocketEndpointFactory, ISSLContextFactory sslContextFactory)
protected ISpincastConfig getConfig()
protected ISpincastUndertowConfig getSpincastUndertowConfig()
protected IFrontController getFrontController()
protected ISpincastUtils getSpincastUtils()
protected ICookieFactory getCookieFactory()
protected ICorsHandlerFactory getCorsHandlerFactory()
protected IGzipCheckerHandlerFactory getGzipCheckerHandlerFactory()
protected ISpincastResourceHandlerFactory getSpincastResourceHandlerFactory()
protected ICacheBusterRemovalHandlerFactory getCacheBusterRemovalHandlerFactory()
protected IFileClassPathResourceManagerFactory getFileClassPathResourceManagerFactory()
protected ISpincastHttpAuthIdentityManagerFactory getSpincastHttpAuthIdentityManagerFactory()
protected IWebsocketEndpointFactory getSpincastWebsocketEndpointFactory()
protected Map<String,IStaticResource<?>> getStaticResourcesServedByUrlPath()
protected Map<String,ISpincastHttpAuthIdentityManager> getHttpAuthIdentityManagersByRealmName()
protected Map<String,IWebsocketEndpoint> getWebsocketEndpointsMap()
protected ISSLContextFactory getSslContextFactory()
public Map<String,String> getHttpAuthenticationRealms()
getHttpAuthenticationRealms in interface IServerprotected 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 ICacheBusterRemovalHandler getCacheBusterRemovalHandler()
protected io.undertow.server.handlers.PathHandler getHttpAuthenticationHandler()
protected io.undertow.server.HttpHandler getHttpAuthHandlerNextHandler()
public void createHttpAuthenticationRealm(String pathPrefix, String realmName)
createHttpAuthenticationRealm in interface IServerprotected String getRealmNameToDisplay(String pathPrefix, String realmName)
protected ISpincastHttpAuthIdentityManager getOrCreateHttpAuthIdentityManagersByRealmName(String realmName)
public void addHttpAuthentication(String realmName, String username, String password)
addHttpAuthentication in interface IServerpublic void removeHttpAuthentication(String username, String realmName)
removeHttpAuthentication in interface IServerpublic void removeHttpAuthentication(String username)
removeHttpAuthentication in interface IServerprotected io.undertow.server.HttpHandler getSpincastFrontControllerHandler()
protected void sendWebsocketEnpointsClosedWhenServerStops()
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 getFullUrlProxied(Object exchangeObj)
getFullUrlProxied in interface IServerpublic String getFullUrlProxied(Object exchangeObj, boolean keepCacheBusters)
getFullUrlProxied in interface IServerpublic String getFullUrlOriginal(Object exchangeObj)
getFullUrlOriginal in interface IServerpublic String getFullUrlOriginal(Object exchangeObj, boolean keepCacheBusters)
getFullUrlOriginal 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 IServerpublic Map<String,List<String>> getRequestHeaders(Object exchangeObj)
getRequestHeaders in interface IServerprotected Object getWebsocketEndpointCreationLock(String endpointId)
public IWebsocketEndpointManager websocketCreateEndpoint(String endpointId, IWebsocketEndpointHandler appEndpointHandler)
websocketCreateEndpoint in interface IServerprotected IWebsocketEndpointHandler createUndertowWebsocketEndpointHandler(String endpointId, IWebsocketEndpointHandler appHandler)
public void websocketCloseEndpoint(String endpointId)
websocketCloseEndpoint in interface IServerpublic void websocketCloseEndpoint(String endpointId, int closingCode, String closingReason)
websocketCloseEndpoint in interface IServerpublic void websocketConnection(Object exchangeObj, String endpointId, String peerId)
websocketConnection in interface IServerpublic List<IWebsocketEndpointManager> getWebsocketEndpointManagers()
getWebsocketEndpointManagers in interface IServerpublic IWebsocketEndpointManager getWebsocketEndpointManager(String endpointId)
getWebsocketEndpointManager in interface IServerCopyright © 2016. All rights reserved.