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 |
addMimeMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info,
String extension,
String mimeType) |
void |
addSecurityConstraint(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment,
io.undertow.servlet.api.SecurityConstraint securityConstraint) |
void |
addSecurityConstraint(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment,
io.undertow.servlet.api.SecurityInfo.EmptyRoleSemantic emptyRoleSemantic,
io.undertow.servlet.api.TransportGuaranteeType transportGuaranteeType,
Set<String> rolesAllowed,
Set<io.undertow.servlet.api.WebResourceCollection> webResourceCollections) |
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,
String httpRootPath,
String defaultCharset,
String requestCharacterEncoding,
String responseCharacterEncoding,
boolean proactiveAuth) |
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,
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,
io.undertow.servlet.api.InstanceFactory<? extends javax.servlet.Servlet> instanceFactory) |
Supplier<javax.servlet.ServletContext> |
servletContextSupplier() |
void |
setDenyUncoveredHttpMethods(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment,
boolean denyUncoveredHttpMethods) |
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) |
void |
setupRequestScope(io.undertow.servlet.api.DeploymentInfo deploymentInfo,
BeanContainer beanContainer) |
void |
setupSecurity(io.undertow.servlet.api.DeploymentManager manager) |
io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> |
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, String httpRootPath, String defaultCharset, String requestCharacterEncoding, String responseCharacterEncoding, boolean proactiveAuth)
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, 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, 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 addMimeMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String extension, String mimeType) throws Exception
Exceptionpublic void addServletInitParameter(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String value)
public void setupSecurity(io.undertow.servlet.api.DeploymentManager manager)
public io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> 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 void setupRequestScope(io.undertow.servlet.api.DeploymentInfo deploymentInfo,
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)
public void setDenyUncoveredHttpMethods(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, boolean denyUncoveredHttpMethods)
public void addSecurityConstraint(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, io.undertow.servlet.api.SecurityConstraint securityConstraint)
public void addSecurityConstraint(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, io.undertow.servlet.api.SecurityInfo.EmptyRoleSemantic emptyRoleSemantic, io.undertow.servlet.api.TransportGuaranteeType transportGuaranteeType, Set<String> rolesAllowed, Set<io.undertow.servlet.api.WebResourceCollection> webResourceCollections)
Copyright © 2020 JBoss by Red Hat. All rights reserved.