Class HttpRequestTemplateObject


public class HttpRequestTemplateObject extends RequestDefinition
Author:
jamesdbloom
  • Constructor Details

    • HttpRequestTemplateObject

      public HttpRequestTemplateObject(HttpRequest httpRequest)
  • Method Details

    • getMethod

      public String getMethod()
    • getPath

      public String getPath()
    • getPathParameters

      public Map<String,List<String>> getPathParameters()
    • getPathGroups

      public List<String> getPathGroups()
      The numbered regex capture groups from the matched expectation's path pattern, 1-based aligned with Matcher group numbering (index 0 is the whole match). Empty when the matched path had no capturing groups. Reference as $request.pathGroups[1] (Velocity), {{ request.pathGroups.1 }} (Mustache) or request.pathGroups[1] (JavaScript).
    • getNamedPathGroups

      public Map<String,String> getNamedPathGroups()
      The named regex capture groups (?<name>...) from the matched expectation's path pattern, keyed by name. Empty when the matched path had no named groups.
    • getQueryStringParameters

      public Map<String,List<String>> getQueryStringParameters()
    • getHeaders

      public Map<String,List<String>> getHeaders()
    • getCookies

      public Map<String,String> getCookies()
    • getBody

      public String getBody()
    • getBodyAsString

      @Deprecated public String getBodyAsString()
      Deprecated.
    • getSecure

      public Boolean getSecure()
    • getClientCertificateChain

      public List<X509Certificate> getClientCertificateChain()
    • getLocalAddress

      public String getLocalAddress()
    • getRemoteAddress

      public String getRemoteAddress()
    • getKeepAlive

      public Boolean getKeepAlive()
    • getJsonRpcId

      public String getJsonRpcId()
    • getJsonRpcRawId

      public String getJsonRpcRawId()
    • getJsonRpcMethod

      public String getJsonRpcMethod()
    • shallowClone

      public HttpRequestTemplateObject shallowClone()
      Specified by:
      shallowClone in class RequestDefinition
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class RequestDefinition
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class RequestDefinition