|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.api.client.filter.ClientFilter
com.sun.jersey.api.client.filter.CsrfProtectionFilter
public class CsrfProtectionFilter
Simple client-side filter that adds X-Requested-By headers to all state-changing
request (i.e. request for methods other than GET, HEAD and OPTIONS).
This is to satisfy the requirements of the CsrfProtectionFilter
on the server side.
| Constructor Summary | |
|---|---|
CsrfProtectionFilter()
|
|
CsrfProtectionFilter(java.lang.String requestedBy)
Initialized the filter with a desired value of the X-Requested-By header. |
|
| Method Summary | |
|---|---|
ClientResponse |
handle(ClientRequest cr)
Adds X-Requested-By header (if not present) to potentially state changing requests. |
| Methods inherited from class com.sun.jersey.api.client.filter.ClientFilter |
|---|
getNext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public ClientResponse handle(ClientRequest cr)
throws ClientHandlerException
handle in interface ClientHandlerhandle in class ClientFiltercr - Client request to be processed.
ClientHandlerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||