public class CsrfProtectionFilter extends ClientFilter
CsrfProtectionFilter
on the server side.| Constructor and Description |
|---|
CsrfProtectionFilter() |
CsrfProtectionFilter(java.lang.String requestedBy)
Initialized the filter with a desired value of the X-Requested-By header.
|
| Modifier and Type | Method and Description |
|---|---|
ClientResponse |
handle(ClientRequest cr)
Adds X-Requested-By header (if not present) to potentially state changing requests.
|
getNextpublic CsrfProtectionFilter()
public CsrfProtectionFilter(java.lang.String requestedBy)
requestedBy - Desired value of X-Requested-By header the filter
will be adding for all potentially state changing requests.public ClientResponse handle(ClientRequest cr) throws ClientHandlerException
handle in interface ClientHandlerhandle in class ClientFiltercr - Client request to be processed.ClientHandlerExceptionCopyright © 2016 Oracle Corporation. All Rights Reserved.