com.github.kristofa.test.http
Class AllExceptContentTypeHeaderFilter

java.lang.Object
  extended by com.github.kristofa.test.http.AbstractHttpRequestMatchingFilter
      extended by 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

Constructor Summary
AllExceptContentTypeHeaderFilter()
           
 
Method Summary
 HttpRequestMatchingContext filter(HttpRequestMatchingContext context)
          Filter/transform input http requests and response if needed.
 
Methods inherited from class com.github.kristofa.test.http.AbstractHttpRequestMatchingFilter
next, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllExceptContentTypeHeaderFilter

public AllExceptContentTypeHeaderFilter()
Method Detail

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.