Class StandaloneHttpHandler
- java.lang.Object
-
- io.undertow.server.handlers.resource.ResourceHandler
-
- com.aspectran.undertow.server.http.AbstractHttpHandler
-
- com.aspectran.undertow.server.http.StandaloneHttpHandler
-
- All Implemented Interfaces:
DisposableBean,InitializableBean,ActivityContextAware,Aware,io.undertow.server.HttpHandler
public class StandaloneHttpHandler extends AbstractHttpHandler implements InitializableBean, DisposableBean
Created: 2019-07-27
-
-
Constructor Summary
Constructors Constructor Description StandaloneHttpHandler(io.undertow.server.handlers.resource.ResourceManager resourceManager)StandaloneHttpHandler(io.undertow.server.handlers.resource.ResourceManager resourceManager, io.undertow.server.HttpHandler next)StandaloneHttpHandler(io.undertow.server.handlers.resource.ResourceSupplier resourceSupplier)StandaloneHttpHandler(io.undertow.server.handlers.resource.ResourceSupplier resourceSupplier, io.undertow.server.HttpHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()A Dispose implementation that calls the destroy() method.AspectranConfiggetAspectranConfig()TowServicegetTowService()voidhandleRequest(io.undertow.server.HttpServerExchange exchange)voidinitialize()Invoke on initialization after it has set all bean properties supplied.voidsetAspectranConfig(AspectranConfig aspectranConfig)-
Methods inherited from class com.aspectran.undertow.server.http.AbstractHttpHandler
getActivityContext, getSessionConfig, getSessionManager, getStaticResourceHandler, setActivityContext, setSessionConfig, setSessionManager, setStaticResourceHandler
-
Methods inherited from class io.undertow.server.handlers.resource.ResourceHandler
addWelcomeFiles, getAllowed, getCachable, getCacheTime, getContentEncodedResourceManager, getMimeMappings, getResourceManager, getResourceSupplier, isCanonicalizePaths, isDirectoryListingEnabled, setAllowed, setCachable, setCacheTime, setCanonicalizePaths, setContentEncodedResourceManager, setDirectoryListingEnabled, setMimeMappings, setResourceManager, setResourceSupplier, setWelcomeFiles
-
-
-
-
Constructor Detail
-
StandaloneHttpHandler
public StandaloneHttpHandler(io.undertow.server.handlers.resource.ResourceManager resourceManager)
-
StandaloneHttpHandler
public StandaloneHttpHandler(io.undertow.server.handlers.resource.ResourceManager resourceManager, io.undertow.server.HttpHandler next)
-
StandaloneHttpHandler
public StandaloneHttpHandler(io.undertow.server.handlers.resource.ResourceSupplier resourceSupplier)
-
StandaloneHttpHandler
public StandaloneHttpHandler(io.undertow.server.handlers.resource.ResourceSupplier resourceSupplier, io.undertow.server.HttpHandler next)
-
-
Method Detail
-
getAspectranConfig
public AspectranConfig getAspectranConfig()
-
setAspectranConfig
public void setAspectranConfig(AspectranConfig aspectranConfig)
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws java.lang.Exception- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Overrides:
handleRequestin classAbstractHttpHandler- Throws:
java.lang.Exception
-
getTowService
public TowService getTowService()
- Specified by:
getTowServicein classAbstractHttpHandler
-
initialize
public void initialize() throws java.lang.ExceptionDescription copied from interface:InitializableBeanInvoke on initialization after it has set all bean properties supplied.- Specified by:
initializein interfaceInitializableBean- Throws:
java.lang.Exception- if initialization fails
-
destroy
public void destroy() throws java.lang.ExceptionDescription copied from interface:DisposableBeanA Dispose implementation that calls the destroy() method.- Specified by:
destroyin interfaceDisposableBean- Throws:
java.lang.Exception- if destruction fails
-
-