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>
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 TypeMethodDescriptionstatic <T> ResteasyServiceBuilder<T>
builder
(org.jboss.resteasy.spi.ResteasyDeployment deployment) Creates a builder forResteasyService
.exchangeType
(RoutingContext routingContext) path()
Context path of the RESTEasy service.register
(ServerBuilder serverBuilder) RegistersResteasyService
with ArmeriaServerBuilder
.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
Methods inherited from interface com.linecorp.armeria.common.util.Unwrappable
equalsIgnoreWrapper, unwrapAll
-
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
-
exchangeType
Description copied from interface:HttpService
Determines anExchangeType
for thisHttpService
from the givenRoutingContext
. By default,ExchangeType.BIDI_STREAMING
is set.Note that an
HttpRequest
will be aggregated before serving theHttpService
ifExchangeType.UNARY
orExchangeType.RESPONSE_STREAMING
is set.- Specified by:
exchangeType
in interfaceHttpService
-