Package org.trellisldp.http
Class WebSubHeaderFilter
- java.lang.Object
-
- org.trellisldp.http.WebSubHeaderFilter
-
- All Implemented Interfaces:
ContainerResponseFilter
@Provider public class WebSubHeaderFilter extends Object implements ContainerResponseFilter
AContainerResponseFilter
that adds WebSub headers to allGET
responses.- See Also:
- WebSub
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_HTTP_WEB_SUB_HUB
The configuration key controlling the location of a web-sub-hub.
-
Constructor Summary
Constructors Constructor Description WebSubHeaderFilter()
Create a new WebSub header Decorator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(ContainerRequestContext req, ContainerResponseContext res)
void
setHub(String hub)
Set the hub value.
-
-
-
Field Detail
-
CONFIG_HTTP_WEB_SUB_HUB
public static final String CONFIG_HTTP_WEB_SUB_HUB
The configuration key controlling the location of a web-sub-hub.- See Also:
- Constant Field Values
-
-
Method Detail
-
setHub
public void setHub(String hub)
Set the hub value.- Parameters:
hub
- the WebSubHub location
-
filter
public void filter(ContainerRequestContext req, ContainerResponseContext res)
- Specified by:
filter
in interfaceContainerResponseFilter
-
-