Package slash.navigation.rest
Class ReadRequest
java.lang.Object
slash.navigation.rest.HttpRequest
slash.navigation.rest.ReadRequest
Wrapper for a HTTP HEAD or GET Request.
- Author:
- Christian Pesch
-
Field Summary
Fields inherited from class slash.navigation.rest.HttpRequest
APPLICATION_JSON -
Constructor Summary
ConstructorsConstructorDescriptionReadRequest(org.apache.hc.client5.http.classic.methods.HttpUriRequestBase method) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleangetETag()voidvoidsetIfModifiedSince(long modifiedSince) voidsetIfNoneMatch(String eTag) Methods inherited from class slash.navigation.rest.HttpRequest
disableContentCompression, execute, executeAsString, getHeader, getHeaders, getStatusCode, isBadRequest, isForbidden, isNotFound, isNotModified, isOk, isPartialContent, isPreconditionFailed, isSuccessful, isUnAuthorized, setHeader, setResponseTimeoutSeconds, setUserAgent, throwsSocketExceptionIfUnAuthorized
-
Constructor Details
-
ReadRequest
public ReadRequest(org.apache.hc.client5.http.classic.methods.HttpUriRequestBase method)
-
-
Method Details
-
getAcceptByteRanges
- Throws:
IOException
-
getContentLength
- Throws:
IOException
-
getLastModified
- Throws:
IOException
-
getETag
- Throws:
IOException
-
disableRedirectHandling
public void disableRedirectHandling()- Overrides:
disableRedirectHandlingin classHttpRequest
-
getLocationHeader
- Throws:
IOException
-
setCacheControlNoCache
public void setCacheControlNoCache() -
setIfModifiedSince
public void setIfModifiedSince(long modifiedSince) -
setIfNoneMatch
-