public abstract class BaseRequestPolicy extends java.lang.Object implements RequestPolicy
| Modifier and Type | Field and Description |
|---|---|
protected java.time.Clock |
clock |
| Constructor and Description |
|---|
BaseRequestPolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
aggregateSignificantData(CachableHttpServletRequest request,
java.io.DataOutputStream daos)
Method to write all significant data.
|
RequestData |
significantRequestDataDigest(CachableHttpServletRequest request)
Method in charge of generating a digest
of all significant data in a request that is needed
to determine that the call is same that is invoiced
|
public RequestData significantRequestDataDigest(CachableHttpServletRequest request) throws java.lang.IllegalArgumentException, java.io.IOException, InternalErrorException
significantRequestDataDigest in interface RequestPolicyrequest - the cachable http servlet request to aggregate request data for.java.lang.IllegalArgumentException - if supplied request contained invalid data.java.io.IOException - if i/o related problems occurred reading the request data.InternalErrorException - if internal errors occurred reading the request data.protected abstract void aggregateSignificantData(CachableHttpServletRequest request, java.io.DataOutputStream daos) throws java.lang.IllegalArgumentException, java.io.IOException, InternalErrorException
request - the cachable http servlet request to aggregate request data for.daos - data output stream to write data to.java.lang.IllegalArgumentException - if supplied request contained invalid data.java.io.IOException - if i/o related problems occurred reading the request data.InternalErrorException - if internal errors occurred reading the request data.