Class ResteasyServiceBuilder<T>
java.lang.Object
com.linecorp.armeria.server.resteasy.ResteasyServiceBuilder<T>
- Type Parameters:
T
- the type of the target custom context class
Builds
ResteasyService
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds newResteasyService
.maxRequestBufferSize(int maxRequestBufferSize)
Sets the maximum limit for request buffer.Sets the context path forResteasyService
.requestContextConverter(Class<T> contextClass, Function<ServiceRequestContext,T> contextConverter)
Defines an optional converter that converts ArmeriaServiceRequestContext
to a target class.responseBufferSize(int responseBufferSize)
Sets the size of the response buffer to handle response content.securityDomain(SecurityDomain securityDomain)
Sets theSecurityDomain
forResteasyService
.
-
Method Details
-
path
Sets the context path forResteasyService
. -
securityDomain
Sets theSecurityDomain
forResteasyService
. -
requestContextConverter
public ResteasyServiceBuilder<T> requestContextConverter(Class<T> contextClass, Function<ServiceRequestContext,T> contextConverter)Defines an optional converter that converts ArmeriaServiceRequestContext
to a target class. This could be useful to exposeServiceRequestContext
via custom interface as part of JAX-RS API. The custom context interface is to be used with JAX-RSContext
annotation.- Parameters:
contextClass
- the target custom context classcontextConverter
- the function that adoptsServiceRequestContext
tocontextClass
-
maxRequestBufferSize
Sets the maximum limit for request buffer. If theContent-Length
of the request exceeds this limit or the request does not includeContent-Length
, the request will be handled as unbuffered (streaming) request. -
responseBufferSize
Sets the size of the response buffer to handle response content. If the response content exceeds this limit the response will be handled as unbuffered (streaming) response. -
build
Builds newResteasyService
.
-