Class RestRequest

java.lang.Object
org.alfresco.rest.core.RestRequest

public class RestRequest extends Object
Author:
Paul Brodner
  • Method Details

    • simpleRequest

      public static RestRequest simpleRequest(org.springframework.http.HttpMethod httpMethod, String path, String... pathParams)
      Use this request when no body is needed
      Parameters:
      httpMethod -
      path -
      pathParams -
      Returns:
    • requestWithBody

      public static RestRequest requestWithBody(org.springframework.http.HttpMethod httpMethod, String body, String path, String... pathParams)
      Use this request when a body has to be provided
      Parameters:
      httpMethod -
      body -
      path -
      pathParams -
      Returns:
    • getBody

      public String getBody()
    • setBody

      public void setBody(String body)
    • getHttpMethod

      public org.springframework.http.HttpMethod getHttpMethod()
    • setHttpMethod

      public void setHttpMethod(org.springframework.http.HttpMethod httpMethod)
    • getPath

      public String getPath()
    • setPath

      public void setPath(String path)
    • getPathParams

      public Object[] getPathParams()
    • setPathParams

      public void setPathParams(Object[] pathParams)
    • getContentType

      public String getContentType()
    • setContentType

      public void setContentType(String contentType)
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Throws:
      MissingFormatArgumentException - If there are not enough pathParams for the path.