public class CachableResponse extends Object implements Serializable
Serializable
,
Serialized FormConstructor and Description |
---|
CachableResponse() |
Modifier and Type | Method and Description |
---|---|
long |
getExpireTimeMillis()
This method gives the expireTimeMillis in the standard java system time format
|
Map<String,Object> |
getHeaderProperties()
This method gives the HTTP Header Properties of the response
|
String |
getRequestHash()
This method gives the hash value of the request payload stored in the cache
|
byte[] |
getResponseEnvelope()
This method gives the cached response envelope as a byte array
|
String |
getResponseHash()
This method gives the hash value of the response stored in the cache
|
long |
getTimeout()
This method gives the timeout period in milliseconds
|
boolean |
isExpired()
This method checks whether this cached response is expired or not
|
boolean |
isInUse()
This method gives the referred cache object is in used or not
|
boolean |
isSOAP11()
This method gives the soap format of the response message is SOAP11 or not
|
void |
reincarnate(long timeout)
This method will refresh the cached response stored in this object.
|
void |
setExpireTimeMillis(long expireTimeMillis)
This method sets the refresh time to the cached response
|
void |
setHeaderProperties(Map<String,Object> headerProperties)
This method sets the HTTP Header Properties of the response
|
void |
setInUse(boolean inUse)
This method sets referred cache object is in used
|
void |
setRequestHash(String requestHash)
This method sets the hash of the request to the cache
|
void |
setResponseEnvelope(byte[] responseEnvelope)
This method sets the response envelope to the cache as a byte array
|
void |
setResponseHash(String responseHash)
This method sets the hash of the response to the cache
|
void |
setSOAP11(boolean isSOAP11)
This method sets the soap format of the response message is SOAP11 or not
|
void |
setTimeout(long timeout)
This method sets the timeout period as milliseconds
|
public boolean isExpired()
public void reincarnate(long timeout)
timeout
- The period for which this object is reincarnatedpublic byte[] getResponseEnvelope()
public void setResponseEnvelope(byte[] responseEnvelope)
responseEnvelope
- - response envelope to be stored in to the
cache as a byte arraypublic String getRequestHash()
public void setRequestHash(String requestHash)
requestHash
- - hash of the request payload to be set as an Stringpublic String getResponseHash()
public void setResponseHash(String responseHash)
responseHash
- - hash of the response to be set as an Stringpublic long getExpireTimeMillis()
public void setExpireTimeMillis(long expireTimeMillis)
expireTimeMillis
- - refresh time in the standard java system time formatpublic long getTimeout()
public void setTimeout(long timeout)
timeout
- - millisecond timeout period to be setpublic void setInUse(boolean inUse)
inUse
- - boolean value inUse to be setpublic boolean isInUse()
public boolean isSOAP11()
public void setSOAP11(boolean isSOAP11)
isSOAP11
- boolean value isSOAP11 to be setpublic Map<String,Object> getHeaderProperties()
Copyright © 2017 WSO2. All rights reserved.