Class TemplateReaderInterceptor
java.lang.Object
ee.jakarta.tck.ws.rs.api.rs.ext.interceptor.reader.TemplateReaderInterceptor
- All Implemented Interfaces:
InterceptorCallbackMethods,jakarta.ws.rs.ext.ReaderInterceptor
- Direct Known Subclasses:
ReaderInterceptorOne,ReaderInterceptorOne,ReaderInterceptorTwo,ReaderInterceptorTwo
public abstract class TemplateReaderInterceptor
extends Object
implements jakarta.ws.rs.ext.ReaderInterceptor, InterceptorCallbackMethods
This class is a superclass for any interceptor @Provider. Any such provider
is then given a body, inherited from TemplateInterceptorBody. The body
actually contains methods with name equalIgnoreCase to ContextOperation items
name, the name of the method executed is passed by http header OPERATION
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TemplateInterceptorBody<jakarta.ws.rs.ext.ReaderInterceptorContext>protected jakarta.ws.rs.ext.ReaderInterceptorContext -
Constructor Summary
ConstructorsConstructorDescriptionTemplateReaderInterceptor(TemplateInterceptorBody<jakarta.ws.rs.ext.ReaderInterceptorContext> interceptorBody) -
Method Summary
Modifier and TypeMethodDescriptionaroundReadFrom(jakarta.ws.rs.ext.ReaderInterceptorContext ctx) proceed()voidwriteEntity(String entity)
-
Field Details
-
readerCtx
protected jakarta.ws.rs.ext.ReaderInterceptorContext readerCtx -
interceptorBody
-
-
Constructor Details
-
TemplateReaderInterceptor
public TemplateReaderInterceptor(TemplateInterceptorBody<jakarta.ws.rs.ext.ReaderInterceptorContext> interceptorBody)
-
-
Method Details
-
aroundReadFrom
public Object aroundReadFrom(jakarta.ws.rs.ext.ReaderInterceptorContext ctx) throws IOException, jakarta.ws.rs.WebApplicationException - Specified by:
aroundReadFromin interfacejakarta.ws.rs.ext.ReaderInterceptor- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
writeEntity
- Specified by:
writeEntityin interfaceInterceptorCallbackMethods
-
proceed
- Specified by:
proceedin interfaceInterceptorCallbackMethods- Throws:
IOException
-
getHeaderString
- Specified by:
getHeaderStringin interfaceInterceptorCallbackMethods
-