public static interface HttpHeaderUtils.HttpResource
HttpServletRequest
and eventually needs to be updated.Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Returns the content-type for this resource
|
byte[] |
getData()
Retrieves the data of this resource.
|
default org.springframework.http.HttpHeaders |
getHeaders()
Returns the
HttpHeaders for this resource. |
default org.springframework.http.HttpStatus |
getStatus()
Returns the
HttpStatus for this resource. |
boolean |
needsUpdate()
Whether or not this resource has been updated during
update() . |
default void |
setStatus(org.springframework.http.HttpStatus status)
Set the status for this response.
|
long |
update()
Updates this resource if necessary and returns the latest version.
|
long update() throws IOException
IOException
- if an error occurs while updatingString getContentType()
boolean needsUpdate()
update()
.true
if this resource has been updatedupdate()
byte[] getData() throws IOException
IOException
- if an error occurs while retrieving the datadefault void setStatus(org.springframework.http.HttpStatus status)
status
- the statusdefault org.springframework.http.HttpStatus getStatus()
HttpStatus
for this resource. Default: HttpStatus#OK
.default org.springframework.http.HttpHeaders getHeaders()
HttpHeaders
for this resource. Default: An empty HttpHeaders
objectCopyright © 2011–2020 aiticon GmbH. All rights reserved.