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.
|
getNext
public 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 ClientHandler
handle
in class ClientFilter
cr
- Client request to be processed.ClientHandlerException
Copyright © 2016 Oracle Corporation. All Rights Reserved.