Class WebResponse
java.lang.Object
se.bjurr.violations.lib.model.generated.sarif.WebResponse
Describes the response to an HTTP request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBody()Represents the contents of an artifact.The response headers.getIndex()The index within the run.webResponses array of the response object associated with this result.Specifies whether a response was received from the server.Key/value pairs that provide additional information about the object.The response protocol.The response reason.The response status code.The response version.inthashCode()voidsetBody(ArtifactContent body) Represents the contents of an artifact.voidsetHeaders(Headers__1 headers) The response headers.voidThe index within the run.webResponses array of the response object associated with this result.voidsetNoResponseReceived(Boolean noResponseReceived) Specifies whether a response was received from the server.voidsetProperties(PropertyBag properties) Key/value pairs that provide additional information about the object.voidsetProtocol(String protocol) The response protocol.voidsetReasonPhrase(String reasonPhrase) The response reason.voidsetStatusCode(Integer statusCode) The response status code.voidsetVersion(String version) The response version.toString()withBody(ArtifactContent body) withHeaders(Headers__1 headers) withNoResponseReceived(Boolean noResponseReceived) withProperties(PropertyBag properties) withProtocol(String protocol) withReasonPhrase(String reasonPhrase) withStatusCode(Integer statusCode) withVersion(String version)
-
Constructor Details
-
WebResponse
public WebResponse()
-
-
Method Details
-
getIndex
The index within the run.webResponses array of the response object associated with this result. -
setIndex
The index within the run.webResponses array of the response object associated with this result. -
withIndex
-
getProtocol
The response protocol. Example: 'http'. -
setProtocol
The response protocol. Example: 'http'. -
withProtocol
-
getVersion
The response version. Example: '1.1'. -
setVersion
The response version. Example: '1.1'. -
withVersion
-
getStatusCode
The response status code. Example: 451. -
setStatusCode
The response status code. Example: 451. -
withStatusCode
-
getReasonPhrase
The response reason. Example: 'Not found'. -
setReasonPhrase
The response reason. Example: 'Not found'. -
withReasonPhrase
-
getHeaders
The response headers. -
setHeaders
The response headers. -
withHeaders
-
getBody
Represents the contents of an artifact. -
setBody
Represents the contents of an artifact. -
withBody
-
getNoResponseReceived
Specifies whether a response was received from the server. -
setNoResponseReceived
Specifies whether a response was received from the server. -
withNoResponseReceived
-
getProperties
Key/value pairs that provide additional information about the object. -
setProperties
Key/value pairs that provide additional information about the object. -
withProperties
-
toString
-
hashCode
public int hashCode() -
equals
-