Refactored HttpHeader#compareTo subclasses implementation which is used to match instances.  HttpHeaderAdapter is using now TypeResolvingHeaderFactory so that it instantiate correct implementations of HttpHeader. Added RequestPattern#matches method to match headers by 'compareTo' instead of 'equals'.