Package org.apache.syncope.core.rest.cxf
Class AddETagFilter
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.AddETagFilter
-
- All Implemented Interfaces:
javax.ws.rs.container.ContainerResponseFilter
@Provider public class AddETagFilter extends Object implements javax.ws.rs.container.ContainerResponseFilter
Adds theETag
header to any response containing an instance ofAnyTO
as entity. The actual ETag value is computed on the basis of last change date (or creation date if not available).
-
-
Constructor Summary
Constructors Constructor Description AddETagFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(javax.ws.rs.container.ContainerRequestContext reqCtx, javax.ws.rs.container.ContainerResponseContext resCtx)
-
-
-
Method Detail
-
filter
public void filter(javax.ws.rs.container.ContainerRequestContext reqCtx, javax.ws.rs.container.ContainerResponseContext resCtx) throws IOException
- Specified by:
filter
in interfacejavax.ws.rs.container.ContainerResponseFilter
- Throws:
IOException
-
-