Package slash.navigation.rest
Class Put
java.lang.Object
slash.navigation.rest.HttpRequest
slash.navigation.rest.Put
Wrapper to initiate an HTTP PUT Request.
- Author:
- Christian Pesch
-
Field Summary
Fields inherited from class slash.navigation.rest.HttpRequest
APPLICATION_JSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoid<T> Texecute(org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler) voidvoidSends the given string verbatim as the request body (not multipart), so the transmitted bytes are exactlybodyencoded with the content type's charset.voidprotected booleanMethods inherited from class slash.navigation.rest.HttpRequest
disableContentCompression, disableRedirectHandling, executeAsString, getHeader, getHeaders, getStatusCode, isBadRequest, isForbidden, isNotFound, isNotModified, isOk, isPartialContent, isPreconditionFailed, isSuccessful, isUnAuthorized, setResponseTimeoutSeconds, setUserAgent
-
Constructor Details
-
Method Details
-
addString
-
setBody
Sends the given string verbatim as the request body (not multipart), so the transmitted bytes are exactlybodyencoded with the content type's charset. Used where the server expects a raw JSON body it can sign-verify. -
addFile
-
addFile
-
throwsSocketExceptionIfUnAuthorized
protected boolean throwsSocketExceptionIfUnAuthorized()- Overrides:
throwsSocketExceptionIfUnAuthorizedin classHttpRequest
-
setHeader
- Overrides:
setHeaderin classHttpRequest
-
execute
public <T> T execute(org.apache.hc.core5.http.io.HttpClientResponseHandler<T> responseHandler) throws IOException - Overrides:
executein classHttpRequest- Throws:
IOException
-
getLocation
- Throws:
IOException
-
setAccept
-