|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.api.container.filter.PostReplaceFilter
public class PostReplaceFilter
A filter to support HTTP method replacing of a POST request to a request utilizing another HTTP method for the case where proxies or HTTP servers would otherwise block that HTTP method.
This filter may be used to replace a POST request with a PUT or DELETE request.
Replacement will occur if the request method is POST and there exists an a request header "X-HTTP-Method-Override" with a non-empty value. That value will be the HTTP method that replaces the POST method.
TODO support query parameter for declaring the replacing method.
| Constructor Summary | |
|---|---|
PostReplaceFilter()
|
|
| Method Summary | |
|---|---|
ContainerRequest |
filter(ContainerRequest request)
Filter the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PostReplaceFilter()
| Method Detail |
|---|
public ContainerRequest filter(ContainerRequest request)
ContainerRequestFilterAn implementation may modify the state of the request or create a new instance.
filter in interface ContainerRequestFilterrequest - the request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||