Class ResteasyService<T>
java.lang.Object
com.linecorp.armeria.server.resteasy.ResteasyService<T>
- Type Parameters:
T
- the type of the target custom context class
- All Implemented Interfaces:
Unwrappable
,HttpService
,Service<HttpRequest,HttpResponse>
@UnstableApi public final class ResteasyService<T> extends Object implements HttpService
RESTEasy service implementing Armeria's
HttpService
. This provides the main entry point for JAX-RS
server-side processing based on Armeria.-
Method Summary
Modifier and Type Method Description static <T> ResteasyServiceBuilder<T>
builder(org.jboss.resteasy.spi.ResteasyDeployment deployment)
Creates a builder forResteasyService
.String
path()
Context path of the RESTEasy service.ServerBuilder
register(ServerBuilder serverBuilder)
RegistersResteasyService
with ArmeriaServerBuilder
.HttpResponse
serve(ServiceRequestContext ctx, HttpRequest req)
Serves an incomingRequest
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.server.HttpService
decorate, decorate
Methods inherited from interface com.linecorp.armeria.server.Service
as, serviceAdded, shouldCachePath, unwrap
-
Method Details
-
builder
public static <T> ResteasyServiceBuilder<T> builder(org.jboss.resteasy.spi.ResteasyDeployment deployment)Creates a builder forResteasyService
.- Type Parameters:
T
- the type of the target custom context class- Parameters:
deployment
- An instance ofResteasyDeployment
- Returns:
- new
ResteasyServiceBuilder
-
path
Context path of the RESTEasy service. -
register
RegistersResteasyService
with ArmeriaServerBuilder
. -
serve
Description copied from interface:Service
Serves an incomingRequest
.- Specified by:
serve
in interfaceHttpService
- Specified by:
serve
in interfaceService<HttpRequest,HttpResponse>
- Parameters:
ctx
- the context of the receivedRequest
req
- the receivedRequest
- Returns:
- the
Response
-