Class Call

java.lang.Object
com.xebialabs.restito.semantics.Call

public class Call extends Object

Call that happened to server. Handy wrapper for Request values.

  • Method Details

    • fromRequest

      public static Call fromRequest(org.glassfish.grizzly.http.server.Request request)
      Factory method
    • getUri

      public String getUri()
      URI of the call
    • getContentType

      public String getContentType()
      Content type of the call
    • getUrl

      public String getUrl()
    • getHeaders

      public Map<String,List<String>> getHeaders()
      Map of headers
    • getMethod

      public org.glassfish.grizzly.http.Method getMethod()
      Http method
    • getParameters

      public Map<String,String[]> getParameters()
      Map of parameters. All parameters considered as if they were multi-valued.
    • getPostBody

      public String getPostBody()
      In case of POST request - returns post body
    • getAuthorization

      public String getAuthorization()
      Returns an authorization header, or null if doesn't exist
    • getRequest

      public org.glassfish.grizzly.http.server.Request getRequest()
      Returns raw HTTP request