public class UndertowDeploymentRecorder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UndertowDeploymentRecorder.ServletContextSupplier |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_BUFFER_SIZE |
protected static boolean |
DEFAULT_DIRECT_BUFFERS |
static io.undertow.server.HttpHandler |
ROOT_HANDLER |
| Constructor and Description |
|---|
UndertowDeploymentRecorder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContextParam(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment,
String paramName,
String paramValue) |
void |
addFilterInitParam(RuntimeValue<io.undertow.servlet.api.FilterInfo> info,
String name,
String value) |
void |
addFilterServletNameMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info,
String name,
String mapping,
javax.servlet.DispatcherType dispatcherType) |
void |
addFilterURLMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info,
String name,
String mapping,
javax.servlet.DispatcherType dispatcherType) |
static void |
addHotDeploymentWrapper(io.undertow.server.HandlerWrapper handlerWrapper) |
void |
addSecurityRoleRef(RuntimeValue<io.undertow.servlet.api.ServletInfo> sref,
String roleName,
String roleLink) |
void |
addServletContainerInitializer(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment,
Class<? extends javax.servlet.ServletContainerInitializer> sciClass,
Set<Class<?>> handlesTypes) |
void |
addServletContextAttribute(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment,
String key,
Object value1) |
void |
addServletExtension(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment,
io.undertow.servlet.ServletExtension extension) |
void |
addServletInitParam(RuntimeValue<io.undertow.servlet.api.ServletInfo> info,
String name,
String value) |
void |
addServletInitParameter(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info,
String name,
String value) |
void |
addServletMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info,
String name,
String mapping) |
io.undertow.servlet.api.DeploymentManager |
bootServletContainer(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info,
BeanContainer beanContainer,
LaunchMode launchMode,
ShutdownContext shutdownContext) |
RuntimeValue<io.undertow.servlet.api.DeploymentInfo> |
createDeployment(String name,
Set<String> knownFile,
Set<String> knownDirectories,
LaunchMode launchMode,
ShutdownContext context,
String contextPath) |
static SocketAddress |
getHttpAddress() |
RuntimeValue<io.undertow.servlet.api.FilterInfo> |
registerFilter(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info,
String name,
Class<?> filterClass,
boolean asyncSupported,
BeanContainer beanContainer,
Map<String,String> initParams,
io.undertow.servlet.api.InstanceFactory<? extends javax.servlet.Filter> instanceFactory) |
void |
registerListener(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info,
Class<?> listenerClass,
BeanContainer factory) |
RuntimeValue<io.undertow.servlet.api.ServletInfo> |
registerServlet(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deploymentInfo,
String name,
Class<?> servletClass,
boolean asyncSupported,
int loadOnStartup,
BeanContainer beanContainer,
Map<String,String> initParams,
io.undertow.servlet.api.InstanceFactory<? extends javax.servlet.Servlet> instanceFactory) |
Supplier<javax.servlet.ServletContext> |
servletContextSupplier() |
static void |
setHotDeploymentResources(List<Path> resources) |
void |
setMultipartConfig(RuntimeValue<io.undertow.servlet.api.ServletInfo> sref,
String location,
long fileSize,
long maxRequestSize,
int fileSizeThreshold) |
void |
setSecurityInfo(RuntimeValue<io.undertow.servlet.api.ServletInfo> sref,
io.undertow.servlet.api.ServletSecurityInfo securityInfo) |
io.undertow.servlet.ServletExtension |
setupRequestScope(BeanContainer beanContainer) |
io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> |
startUndertow(ShutdownContext shutdown,
ExecutorService executorService,
io.undertow.servlet.api.DeploymentManager manager,
List<io.undertow.server.HandlerWrapper> wrappers,
HttpConfiguration httpConfiguration,
ServletRuntimeConfig servletRuntimeConfig) |
public static final io.undertow.server.HttpHandler ROOT_HANDLER
protected static final int DEFAULT_BUFFER_SIZE
protected static final boolean DEFAULT_DIRECT_BUFFERS
public RuntimeValue<io.undertow.servlet.api.DeploymentInfo> createDeployment(String name, Set<String> knownFile, Set<String> knownDirectories, LaunchMode launchMode, ShutdownContext context, String contextPath)
public static SocketAddress getHttpAddress()
public RuntimeValue<io.undertow.servlet.api.ServletInfo> registerServlet(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deploymentInfo, String name, Class<?> servletClass, boolean asyncSupported, int loadOnStartup, BeanContainer beanContainer, Map<String,String> initParams, io.undertow.servlet.api.InstanceFactory<? extends javax.servlet.Servlet> instanceFactory) throws Exception
Exceptionpublic void addServletInitParam(RuntimeValue<io.undertow.servlet.api.ServletInfo> info, String name, String value)
public void addServletMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping) throws Exception
Exceptionpublic void setMultipartConfig(RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, String location, long fileSize, long maxRequestSize, int fileSizeThreshold)
public void setSecurityInfo(RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, io.undertow.servlet.api.ServletSecurityInfo securityInfo)
sref - securityInfo - public void addSecurityRoleRef(RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, String roleName, String roleLink)
sref - roleName - roleLink - public RuntimeValue<io.undertow.servlet.api.FilterInfo> registerFilter(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, Class<?> filterClass, boolean asyncSupported, BeanContainer beanContainer, Map<String,String> initParams, io.undertow.servlet.api.InstanceFactory<? extends javax.servlet.Filter> instanceFactory) throws Exception
Exceptionpublic void addFilterInitParam(RuntimeValue<io.undertow.servlet.api.FilterInfo> info, String name, String value)
public void addFilterURLMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping, javax.servlet.DispatcherType dispatcherType) throws Exception
Exceptionpublic void addFilterServletNameMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping, javax.servlet.DispatcherType dispatcherType) throws Exception
Exceptionpublic void registerListener(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, Class<?> listenerClass, BeanContainer factory)
public void addServletInitParameter(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String value)
public io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> startUndertow(ShutdownContext shutdown, ExecutorService executorService, io.undertow.servlet.api.DeploymentManager manager, List<io.undertow.server.HandlerWrapper> wrappers, HttpConfiguration httpConfiguration, ServletRuntimeConfig servletRuntimeConfig) throws Exception
Exceptionpublic static void addHotDeploymentWrapper(io.undertow.server.HandlerWrapper handlerWrapper)
public Supplier<javax.servlet.ServletContext> servletContextSupplier()
public io.undertow.servlet.api.DeploymentManager bootServletContainer(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, BeanContainer beanContainer, LaunchMode launchMode, ShutdownContext shutdownContext)
public void addServletContextAttribute(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, String key, Object value1)
public void addServletExtension(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, io.undertow.servlet.ServletExtension extension)
public io.undertow.servlet.ServletExtension setupRequestScope(BeanContainer beanContainer)
public void addServletContainerInitializer(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, Class<? extends javax.servlet.ServletContainerInitializer> sciClass, Set<Class<?>> handlesTypes)
public void addContextParam(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, String paramName, String paramValue)
Copyright © 2019 JBoss by Red Hat. All rights reserved.