com.github.kristofa.test.http
Class AllExceptContentTypeHeaderFilter
java.lang.Object
com.github.kristofa.test.http.AbstractHttpRequestMatchingFilter
com.github.kristofa.test.http.AllExceptContentTypeHeaderFilter
- All Implemented Interfaces:
- HttpRequestMatchingFilter
public class AllExceptContentTypeHeaderFilter
- extends AbstractHttpRequestMatchingFilter
HttpRequestMatchingFilter that will remove all http headers except Content-Type from original and other http
request.
- Author:
- kristof
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllExceptContentTypeHeaderFilter
public AllExceptContentTypeHeaderFilter()
filter
public HttpRequestMatchingContext filter(HttpRequestMatchingContext context)
- Filter/transform input http requests and response if needed.
- Parameters:
context - Input context. Contains either original request, non matching other request and original response OR
context modified by HttpRequestMatchingFilter earlier in the chain.
- Returns:
- Same or modified context.
Copyright © 2014. All Rights Reserved.