java.lang.Object
se.bjurr.violations.lib.model.generated.sarif.WebResponse

public class WebResponse extends Object
Describes the response to an HTTP request.
  • Constructor Details

    • WebResponse

      public WebResponse()
  • Method Details

    • getIndex

      public Integer getIndex()
      The index within the run.webResponses array of the response object associated with this result.
    • setIndex

      public void setIndex(Integer index)
      The index within the run.webResponses array of the response object associated with this result.
    • withIndex

      public WebResponse withIndex(Integer index)
    • getProtocol

      public String getProtocol()
      The response protocol. Example: 'http'.
    • setProtocol

      public void setProtocol(String protocol)
      The response protocol. Example: 'http'.
    • withProtocol

      public WebResponse withProtocol(String protocol)
    • getVersion

      public String getVersion()
      The response version. Example: '1.1'.
    • setVersion

      public void setVersion(String version)
      The response version. Example: '1.1'.
    • withVersion

      public WebResponse withVersion(String version)
    • getStatusCode

      public Integer getStatusCode()
      The response status code. Example: 451.
    • setStatusCode

      public void setStatusCode(Integer statusCode)
      The response status code. Example: 451.
    • withStatusCode

      public WebResponse withStatusCode(Integer statusCode)
    • getReasonPhrase

      public String getReasonPhrase()
      The response reason. Example: 'Not found'.
    • setReasonPhrase

      public void setReasonPhrase(String reasonPhrase)
      The response reason. Example: 'Not found'.
    • withReasonPhrase

      public WebResponse withReasonPhrase(String reasonPhrase)
    • getHeaders

      public Headers__1 getHeaders()
      The response headers.
    • setHeaders

      public void setHeaders(Headers__1 headers)
      The response headers.
    • withHeaders

      public WebResponse withHeaders(Headers__1 headers)
    • getBody

      public ArtifactContent getBody()
      Represents the contents of an artifact.
    • setBody

      public void setBody(ArtifactContent body)
      Represents the contents of an artifact.
    • withBody

      public WebResponse withBody(ArtifactContent body)
    • getNoResponseReceived

      public Boolean getNoResponseReceived()
      Specifies whether a response was received from the server.
    • setNoResponseReceived

      public void setNoResponseReceived(Boolean noResponseReceived)
      Specifies whether a response was received from the server.
    • withNoResponseReceived

      public WebResponse withNoResponseReceived(Boolean noResponseReceived)
    • getProperties

      public PropertyBag getProperties()
      Key/value pairs that provide additional information about the object.
    • setProperties

      public void setProperties(PropertyBag properties)
      Key/value pairs that provide additional information about the object.
    • withProperties

      public WebResponse withProperties(PropertyBag properties)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object