Class ContentTypeHandler

java.lang.Object
ee.jakarta.tck.ws.rs.common.webclient.handler.ContentTypeHandler
All Implemented Interfaces:
Handler

public class ContentTypeHandler extends Object implements Handler
 When invoked, the content-type header
 will be appropriately handled.  It allows
 flexible checking of control values against
 the response which could be in the form of:
    content-type; charset
      -or-
    conent-type
 
  • Method Details

    • getInstance

      public static Handler getInstance()
      Returns an instance of this handler.
    • invoke

      public boolean invoke(org.apache.commons.httpclient.Header configuredHeader, org.apache.commons.httpclient.Header responseHeader)
      Invokes handler logic.
      Specified by:
      invoke in interface Handler
      Parameters:
      configuredHeader - the user configured header
      responseHeader - the response header from the server
      Returns:
      True if the passed match, otherwise false