@Provider public class WebSubHeaderFilter extends Object implements ContainerResponseFilter
ContainerResponseFilter
that adds WebSub headers to all
GET
responses.Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_HTTP_WEB_SUB_HUB
The configuration key controlling the location of a web-sub-hub.
|
Constructor and Description |
---|
WebSubHeaderFilter()
Create a new WebSub header Decorator.
|
WebSubHeaderFilter(String hub)
Create a new WebSub Header Decorator.
|
Modifier and Type | Method and Description |
---|---|
void |
filter(ContainerRequestContext req,
ContainerResponseContext res) |
public static final String CONFIG_HTTP_WEB_SUB_HUB
@Inject public WebSubHeaderFilter()
public WebSubHeaderFilter(String hub)
hub
- the location of the websub hubpublic void filter(ContainerRequestContext req, ContainerResponseContext res)
filter
in interface ContainerResponseFilter