Class AbstractServiceProxy

All Implemented Interfaces:
Rule, Cloneable
Direct Known Subclasses:
ServiceProxy, SOAPProxy

public abstract class AbstractServiceProxy extends SSLableProxy
  • Field Details

  • Constructor Details

    • AbstractServiceProxy

      public AbstractServiceProxy()
  • Method Details

    • getTargetScheme

      public String getTargetScheme()
    • init

      public void init() throws Exception
      Overrides:
      init in class AbstractProxy
      Throws:
      Exception
    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
      Default
      not set
      Description

      A space separated list of hostnames. If set, Membrane will only consider this rule, if the "Host" header of incoming HTTP requests matches one of the hostnames.

      The asterisk '*' can be used for basic globbing (to match any number, including zero, characters).

      Example
      predic8.de *.predic8.de
    • getPath

      public Path getPath()
    • setPath

      public void setPath(Path path)
      Description

      If set, Membrane will only consider this rule, if the path of incoming HTTP requests matches. Path supports starts-with and regex matching.

      If used in a SOAPProxy, this causes path rewriting of SOAP requests and in the WSDL to automatically be configured.

    • getTargetHost

      public String getTargetHost()
    • getTargetPort

      public int getTargetPort()
    • getTargetURL

      public String getTargetURL()
    • getTargetSSL

      public SSLParser getTargetSSL()
    • isTargetAdjustHostHeader

      public boolean isTargetAdjustHostHeader()
      Specified by:
      isTargetAdjustHostHeader in interface Rule
      Overrides:
      isTargetAdjustHostHeader in class AbstractProxy