Package com.predic8.membrane.core.http
Class Request.Builder
java.lang.Object
com.predic8.membrane.core.http.Request.Builder
- Enclosing class:
- Request
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorization(String username, String password) body(byte[] body) body(long contentLength, InputStream body) build()contentType(String value) delete(URIFactory uriFactory, String url) get(URIFactory uriFactory, String url) Sets the request's method to "GET" and the URI to the parameter.post(URIFactory uriFactory, String url) put(URIFactory uriFactory, String url) url(URIFactory uriFactory, String url)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
buildExchange
-
method
-
url
- Throws:
URISyntaxException
-
authorization
-
header
-
contentType
-
header
-
body
-
body
-
body
- Throws:
IOException
-
post
- Throws:
URISyntaxException
-
post
- Throws:
URISyntaxException
-
get
- Throws:
URISyntaxException
-
get
Sets the request's method to "GET" and the URI to the parameter. Uses a standardURIFactory.- Throws:
URISyntaxException
-
delete
- Throws:
URISyntaxException
-
delete
- Throws:
URISyntaxException
-
put
- Throws:
URISyntaxException
-
put
- Throws:
URISyntaxException
-