Class TemplateInterceptorBody<CONTEXT extends jakarta.ws.rs.ext.InterceptorContext>
java.lang.Object
ee.jakarta.tck.ws.rs.api.rs.ext.interceptor.TemplateInterceptorBody<CONTEXT>
- Type Parameters:
CONTEXT
- The context the body methods will use.
- Direct Known Subclasses:
InterceptorBodyOne
,InterceptorBodyOne
,InterceptorBodyTwo
,InterceptorBodyTwo
,InterceptorOneBody
,InterceptorTwoBody
public abstract class TemplateInterceptorBody<CONTEXT extends jakarta.ws.rs.ext.InterceptorContext>
extends Object
Body for both reader and writer interceptor body The body is injected into
Template<Reader/Writer>Interceptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertTrue
(boolean conditionTrue, Object... msg) executeMethod
(CONTEXT context, InterceptorCallbackMethods callback) protected String
protected Object
operationMethodNotFound
(String operation) protected Object
proceed()
protected <T> void
setEntity
(T... entity) protected <T> void
setSeparatedEntity
(String separator, T... entity) protected void
writeEntity
(String entity)
-
Field Details
-
OPERATION
- See Also:
-
ENTITY
- See Also:
-
ENTITY2
- See Also:
-
PROPERTY
- See Also:
-
NULL
- See Also:
-
NPE
- See Also:
-
IOE
- See Also:
-
WAE
- See Also:
-
context
-
callback
-
-
Constructor Details
-
TemplateInterceptorBody
public TemplateInterceptorBody()
-
-
Method Details
-
executeMethod
public Object executeMethod(CONTEXT context, InterceptorCallbackMethods callback) throws IOException - Throws:
IOException
-
operationMethodNotFound
- Throws:
IOException
-
assertTrue
-
setEntity
protected <T> void setEntity(T... entity) -
setSeparatedEntity
-
writeEntity
-
proceed
- Throws:
IOException
-
getHeaderString
-