public interface WSRequestHolder
Modifier and Type | Method and Description |
---|---|
F.Promise<WSResponse> |
delete() |
F.Promise<WSResponse> |
execute()
Execute the request
|
F.Promise<WSResponse> |
execute(java.lang.String method) |
F.Promise<WSResponse> |
get() |
WSSignatureCalculator |
getCalculator() |
java.lang.Boolean |
getFollowRedirects() |
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> |
getHeaders() |
java.lang.String |
getPassword() |
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> |
getQueryParameters() |
long |
getRequestTimeout() |
WSAuthScheme |
getScheme() |
int |
getTimeout()
Deprecated.
|
java.lang.String |
getUrl() |
java.lang.String |
getUsername() |
F.Promise<WSResponse> |
head() |
F.Promise<WSResponse> |
options() |
F.Promise<WSResponse> |
patch(java.io.InputStream body) |
F.Promise<WSResponse> |
patch(com.fasterxml.jackson.databind.JsonNode body) |
F.Promise<WSResponse> |
patch(java.lang.String body) |
F.Promise<WSResponse> |
post(java.io.File body) |
F.Promise<WSResponse> |
post(java.io.InputStream body) |
F.Promise<WSResponse> |
post(com.fasterxml.jackson.databind.JsonNode body) |
F.Promise<WSResponse> |
post(java.lang.String body) |
F.Promise<WSResponse> |
put(java.io.File body) |
F.Promise<WSResponse> |
put(java.io.InputStream body) |
F.Promise<WSResponse> |
put(com.fasterxml.jackson.databind.JsonNode body) |
F.Promise<WSResponse> |
put(java.lang.String body) |
WSRequestHolder |
setAuth(java.lang.String userInfo) |
WSRequestHolder |
setAuth(java.lang.String username,
java.lang.String password) |
WSRequestHolder |
setAuth(java.lang.String username,
java.lang.String password,
WSAuthScheme scheme) |
WSRequestHolder |
setBody(java.io.File body)
Set the body this request should use
|
WSRequestHolder |
setBody(java.io.InputStream body)
Set the body this request should use
|
WSRequestHolder |
setBody(com.fasterxml.jackson.databind.JsonNode body)
Set the body this request should use
|
WSRequestHolder |
setBody(java.lang.String body)
Set the body this request should use
|
WSRequestHolder |
setContentType(java.lang.String contentType) |
WSRequestHolder |
setFollowRedirects(java.lang.Boolean followRedirects) |
WSRequestHolder |
setHeader(java.lang.String name,
java.lang.String value) |
WSRequestHolder |
setMethod(java.lang.String method)
Set the method this request should use.
|
WSRequestHolder |
setQueryParameter(java.lang.String name,
java.lang.String value) |
WSRequestHolder |
setQueryString(java.lang.String query) |
WSRequestHolder |
setRequestTimeout(long timeout) |
WSRequestHolder |
setTimeout(int timeout)
Deprecated.
|
WSRequestHolder |
setVirtualHost(java.lang.String virtualHost) |
WSRequestHolder |
sign(WSSignatureCalculator calculator) |
java.lang.String getUsername()
java.lang.String getPassword()
WSAuthScheme getScheme()
WSSignatureCalculator getCalculator()
@Deprecated int getTimeout()
long getRequestTimeout()
java.lang.Boolean getFollowRedirects()
F.Promise<WSResponse> get()
F.Promise<WSResponse> patch(java.lang.String body)
F.Promise<WSResponse> post(java.lang.String body)
F.Promise<WSResponse> put(java.lang.String body)
F.Promise<WSResponse> patch(com.fasterxml.jackson.databind.JsonNode body)
F.Promise<WSResponse> post(com.fasterxml.jackson.databind.JsonNode body)
F.Promise<WSResponse> put(com.fasterxml.jackson.databind.JsonNode body)
F.Promise<WSResponse> patch(java.io.InputStream body)
F.Promise<WSResponse> post(java.io.InputStream body)
F.Promise<WSResponse> put(java.io.InputStream body)
F.Promise<WSResponse> post(java.io.File body)
F.Promise<WSResponse> put(java.io.File body)
F.Promise<WSResponse> delete()
F.Promise<WSResponse> head()
F.Promise<WSResponse> options()
F.Promise<WSResponse> execute(java.lang.String method)
F.Promise<WSResponse> execute()
WSRequestHolder setMethod(java.lang.String method)
WSRequestHolder setBody(java.lang.String body)
WSRequestHolder setBody(com.fasterxml.jackson.databind.JsonNode body)
WSRequestHolder setBody(java.io.InputStream body)
WSRequestHolder setBody(java.io.File body)
WSRequestHolder setHeader(java.lang.String name, java.lang.String value)
WSRequestHolder setQueryString(java.lang.String query)
WSRequestHolder setQueryParameter(java.lang.String name, java.lang.String value)
WSRequestHolder setAuth(java.lang.String userInfo)
WSRequestHolder setAuth(java.lang.String username, java.lang.String password)
WSRequestHolder setAuth(java.lang.String username, java.lang.String password, WSAuthScheme scheme)
WSRequestHolder sign(WSSignatureCalculator calculator)
WSRequestHolder setFollowRedirects(java.lang.Boolean followRedirects)
WSRequestHolder setVirtualHost(java.lang.String virtualHost)
@Deprecated WSRequestHolder setTimeout(int timeout)
WSRequestHolder setRequestTimeout(long timeout)
WSRequestHolder setContentType(java.lang.String contentType)
java.lang.String getUrl()
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getHeaders()
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getQueryParameters()