Class TemplateWriterInterceptor
java.lang.Object
ee.jakarta.tck.ws.rs.ee.rs.ext.interceptor.writer.TemplateWriterInterceptor
- All Implemented Interfaces:
InterceptorCallbackMethods
,jakarta.ws.rs.ext.WriterInterceptor
- Direct Known Subclasses:
WriterInterceptorOne
,WriterInterceptorOne
,WriterInterceptorTwo
,WriterInterceptorTwo
public abstract class TemplateWriterInterceptor
extends Object
implements jakarta.ws.rs.ext.WriterInterceptor, 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.WriterInterceptorContext>
protected jakarta.ws.rs.ext.WriterInterceptorContext
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateWriterInterceptor
(TemplateInterceptorBody<jakarta.ws.rs.ext.WriterInterceptorContext> interceptorBody) -
Method Summary
Modifier and TypeMethodDescriptionvoid
aroundWriteTo
(jakarta.ws.rs.ext.WriterInterceptorContext ctx) proceed()
void
writeEntity
(String entity)
-
Field Details
-
writerCtx
protected jakarta.ws.rs.ext.WriterInterceptorContext writerCtx -
interceptorBody
-
-
Constructor Details
-
TemplateWriterInterceptor
public TemplateWriterInterceptor(TemplateInterceptorBody<jakarta.ws.rs.ext.WriterInterceptorContext> interceptorBody)
-
-
Method Details
-
aroundWriteTo
- Specified by:
aroundWriteTo
in interfacejakarta.ws.rs.ext.WriterInterceptor
- Throws:
IOException
-
writeEntity
- Specified by:
writeEntity
in interfaceInterceptorCallbackMethods
-
proceed
- Specified by:
proceed
in interfaceInterceptorCallbackMethods
- Throws:
IOException
-
getHeaderString
- Specified by:
getHeaderString
in interfaceInterceptorCallbackMethods
-