Class WebRequest
java.lang.Object
se.bjurr.violations.lib.model.generated.sarif.WebRequest
Describes an HTTP request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBody()Represents the contents of an artifact.The request headers.getIndex()The index within the run.webRequests array of the request object associated with this result.The HTTP method.The request parameters.Key/value pairs that provide additional information about the object.The request protocol.The target of the request.The request version.inthashCode()voidsetBody(ArtifactContent body) Represents the contents of an artifact.voidsetHeaders(Headers headers) The request headers.voidThe index within the run.webRequests array of the request object associated with this result.voidThe HTTP method.voidsetParameters(Parameters parameters) The request parameters.voidsetProperties(PropertyBag properties) Key/value pairs that provide additional information about the object.voidsetProtocol(String protocol) The request protocol.voidThe target of the request.voidsetVersion(String version) The request version.toString()withBody(ArtifactContent body) withHeaders(Headers headers) withMethod(String method) withParameters(Parameters parameters) withProperties(PropertyBag properties) withProtocol(String protocol) withTarget(String target) withVersion(String version)
-
Constructor Details
-
WebRequest
public WebRequest()
-
-
Method Details
-
getIndex
The index within the run.webRequests array of the request object associated with this result. -
setIndex
The index within the run.webRequests array of the request object associated with this result. -
withIndex
-
getProtocol
The request protocol. Example: 'http'. -
setProtocol
The request protocol. Example: 'http'. -
withProtocol
-
getVersion
The request version. Example: '1.1'. -
setVersion
The request version. Example: '1.1'. -
withVersion
-
getTarget
The target of the request. -
setTarget
The target of the request. -
withTarget
-
getMethod
The HTTP method. Well-known values are 'GET', 'PUT', 'POST', 'DELETE', 'PATCH', 'HEAD', 'OPTIONS', 'TRACE', 'CONNECT'. -
setMethod
The HTTP method. Well-known values are 'GET', 'PUT', 'POST', 'DELETE', 'PATCH', 'HEAD', 'OPTIONS', 'TRACE', 'CONNECT'. -
withMethod
-
getHeaders
The request headers. -
setHeaders
The request headers. -
withHeaders
-
getParameters
The request parameters. -
setParameters
The request parameters. -
withParameters
-
getBody
Represents the contents of an artifact. -
setBody
Represents the contents of an artifact. -
withBody
-
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
-