Package org.attribyte.api.http
Class PutRequestBuilder
java.lang.Object
org.attribyte.api.http.RequestBuilder
org.attribyte.api.http.PutRequestBuilder
Builds immutable HTTP
PUT requests.-
Field Summary
Fields inherited from class org.attribyte.api.http.RequestBuilder
attributes, cookies, headers, uri -
Constructor Summary
ConstructorsConstructorDescriptionPutRequestBuilder(String uri, byte[] body) Creates aPUTrequest builder with a parsed URI.PutRequestBuilder(String uri, com.google.protobuf.ByteString body) Creates aPUTrequest builder with a parsed URI and the body specified as aByteString.PutRequestBuilder(URI uri, byte[] body) Creates aPUTrequest builder.PutRequestBuilder(URI uri, com.google.protobuf.ByteString body) Creates aPUTrequest builder and the body specified as aByteString. -
Method Summary
Methods inherited from class org.attribyte.api.http.RequestBuilder
addAttribute, addAttributes, addCookie, addHeader, addHeaders, addHeaders
-
Constructor Details
-
PutRequestBuilder
Creates aPUTrequest builder with a parsed URI.- Parameters:
uri- The URI string to be parsed.body- The request body.- Throws:
org.attribyte.api.InvalidURIException- if URI is invalid.
-
PutRequestBuilder
Creates aPUTrequest builder.- Parameters:
uri- The URI.body- The request body.
-
PutRequestBuilder
public PutRequestBuilder(String uri, com.google.protobuf.ByteString body) throws org.attribyte.api.InvalidURIException Creates aPUTrequest builder with a parsed URI and the body specified as aByteString.- Parameters:
uri- The URI string to be parsed.body- The request body.- Throws:
org.attribyte.api.InvalidURIException- if URI is invalid.
-
PutRequestBuilder
Creates aPUTrequest builder and the body specified as aByteString.- Parameters:
uri- The URI.body- The request body.
-
-
Method Details
-
create
Description copied from class:RequestBuilderCreates the immutable request after all headers, parameters and attributes are added.- Specified by:
createin classRequestBuilder- Returns:
- The request.
-