public class JerseyRequest extends Object implements com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>
| Constructor and Description |
|---|
JerseyRequest(com.atlassian.sal.api.net.Request delegateRequest,
JerseyEntityHandler jerseyEntityHandler,
com.atlassian.plugin.Plugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
JerseyRequest |
addBasicAuthentication(String hostname,
String username,
String password) |
JerseyRequest |
addHeader(String s,
String s1) |
JerseyRequest |
addRequestParameters(String... strings) |
String |
execute() |
void |
execute(com.atlassian.sal.api.net.ResponseHandler<? super JerseyResponse> responseHandler) |
<RET> RET |
executeAndReturn(com.atlassian.sal.api.net.ReturningResponseHandler<? super JerseyResponse,RET> responseHandler) |
Map<String,List<String>> |
getHeaders() |
JerseyRequest |
setConnectionTimeout(int i) |
JerseyRequest |
setEntity(Object entity) |
JerseyRequest |
setFiles(List<com.atlassian.sal.api.net.RequestFilePart> files) |
JerseyRequest |
setFollowRedirects(boolean follow) |
JerseyRequest |
setHeader(String s,
String s1) |
JerseyRequest |
setRequestBody(String s) |
JerseyRequest |
setRequestBody(String requestBody,
String contentType) |
JerseyRequest |
setSoTimeout(int i) |
JerseyRequest |
setUrl(String s) |
public JerseyRequest(com.atlassian.sal.api.net.Request delegateRequest,
JerseyEntityHandler jerseyEntityHandler,
com.atlassian.plugin.Plugin plugin)
public JerseyRequest addBasicAuthentication(String hostname, String username, String password)
addBasicAuthentication in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>public JerseyRequest setEntity(Object entity)
setEntity in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>public JerseyRequest setConnectionTimeout(int i)
setConnectionTimeout in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>public JerseyRequest setSoTimeout(int i)
setSoTimeout in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>public JerseyRequest setUrl(String s)
setUrl in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>public JerseyRequest setRequestBody(String s)
setRequestBody in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>public JerseyRequest setRequestBody(String requestBody, String contentType)
setRequestBody in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>public JerseyRequest setFiles(List<com.atlassian.sal.api.net.RequestFilePart> files)
setFiles in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>public JerseyRequest addRequestParameters(String... strings)
addRequestParameters in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>public JerseyRequest addHeader(String s, String s1)
addHeader in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>public JerseyRequest setHeader(String s, String s1)
setHeader in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>public JerseyRequest setFollowRedirects(boolean follow)
setFollowRedirects in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>public Map<String,List<String>> getHeaders()
getHeaders in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>public void execute(com.atlassian.sal.api.net.ResponseHandler<? super JerseyResponse> responseHandler) throws com.atlassian.sal.api.net.ResponseException
execute in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>com.atlassian.sal.api.net.ResponseExceptionpublic String execute() throws com.atlassian.sal.api.net.ResponseException
execute in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>com.atlassian.sal.api.net.ResponseExceptionpublic <RET> RET executeAndReturn(com.atlassian.sal.api.net.ReturningResponseHandler<? super JerseyResponse,RET> responseHandler) throws com.atlassian.sal.api.net.ResponseException
executeAndReturn in interface com.atlassian.sal.api.net.Request<JerseyRequest,JerseyResponse>com.atlassian.sal.api.net.ResponseExceptionCopyright © 2016 Atlassian. All rights reserved.