public class UndertowJaxrsServer extends Object
Modifier and Type | Field and Description |
---|---|
protected io.undertow.Undertow |
server |
Constructor and Description |
---|
UndertowJaxrsServer() |
Modifier and Type | Method and Description |
---|---|
UndertowJaxrsServer |
deploy(javax.ws.rs.core.Application application)
Creates a web deployment for the jaxrs Application.
|
UndertowJaxrsServer |
deploy(javax.ws.rs.core.Application application,
String contextPath)
Creates a web deployment for the jaxrs Application.
|
UndertowJaxrsServer |
deploy(Class<? extends javax.ws.rs.core.Application> application)
Creates a web deployment for the jaxrs Application.
|
UndertowJaxrsServer |
deploy(Class<? extends javax.ws.rs.core.Application> application,
String contextPath)
Creates a web deployment for the jaxrs Application.
|
UndertowJaxrsServer |
deploy(io.undertow.servlet.api.DeploymentInfo builder)
Adds an arbitrary web deployment to underlying Undertow server.
|
UndertowJaxrsServer |
deploy(ResteasyDeployment deployment)
Creates a web deployment under "/"
|
UndertowJaxrsServer |
deploy(ResteasyDeployment deployment,
String contextPath)
Creates a web deployment under contextPath
|
UndertowJaxrsServer |
start() |
UndertowJaxrsServer |
start(io.undertow.Undertow.Builder builder) |
void |
stop() |
io.undertow.servlet.api.DeploymentInfo |
undertowDeployment(Class<? extends javax.ws.rs.core.Application> application)
Creates a web deployment for the jaxrs Application.
|
io.undertow.servlet.api.DeploymentInfo |
undertowDeployment(Class<? extends javax.ws.rs.core.Application> application,
String mapping)
Creates a web deployment for the jaxrs Application.
|
io.undertow.servlet.api.DeploymentInfo |
undertowDeployment(ResteasyDeployment deployment)
Creates a web deployment for your ResteasyDeployent so you can set up things like security constraints
You'd call this method, add your servlet security constraints, then call deploy(DeploymentInfo)
Note, only one ResteasyDeployment can be applied per DeploymentInfo.
|
io.undertow.servlet.api.DeploymentInfo |
undertowDeployment(ResteasyDeployment deployment,
String mapping)
Creates a web deployment for your ResteasyDeployent so you can set up things like security constraints
You'd call this method, add your servlet security constraints, then call deploy(DeploymentInfo)
Note, only one ResteasyDeployment can be applied per DeploymentInfo
ResteasyServlet is mapped to mapping + "/*"
Example:
DeploymentInfo di = server.undertowDeployment(resteasyDeployment, "rest");
di.setDeploymentName("MyDeployment")
di.setContextRoot("root");
server.deploy(di);
|
public io.undertow.servlet.api.DeploymentInfo undertowDeployment(ResteasyDeployment deployment, String mapping)
deployment
- mapping
- resteasy.servlet.mapping.prefixpublic io.undertow.servlet.api.DeploymentInfo undertowDeployment(ResteasyDeployment deployment)
deployment
- public io.undertow.servlet.api.DeploymentInfo undertowDeployment(Class<? extends javax.ws.rs.core.Application> application, String mapping)
application
- mapping
- resteasy.servlet.mapping.prefixpublic io.undertow.servlet.api.DeploymentInfo undertowDeployment(Class<? extends javax.ws.rs.core.Application> application)
application
- public UndertowJaxrsServer deploy(ResteasyDeployment deployment)
deployment
- public UndertowJaxrsServer deploy(ResteasyDeployment deployment, String contextPath)
deployment
- contextPath
- public UndertowJaxrsServer deploy(Class<? extends javax.ws.rs.core.Application> application)
application
- public UndertowJaxrsServer deploy(Class<? extends javax.ws.rs.core.Application> application, String contextPath)
application
- contextPath
- public UndertowJaxrsServer deploy(javax.ws.rs.core.Application application)
application
- public UndertowJaxrsServer deploy(javax.ws.rs.core.Application application, String contextPath)
application
- contextPath
- public UndertowJaxrsServer deploy(io.undertow.servlet.api.DeploymentInfo builder)
builder
- public UndertowJaxrsServer start(io.undertow.Undertow.Builder builder)
public UndertowJaxrsServer start()
public void stop()
Copyright © 2015 JBoss by Red Hat. All rights reserved.