public class Request extends Object
| Modifier and Type | Method and Description |
|---|---|
RequestCustomizer |
getCustomizer() |
String |
getPassword() |
boolean |
getRedirects() |
org.apache.http.client.methods.HttpUriRequest |
getRequest() |
String |
getUsername() |
String |
toString() |
Request |
withContent(String content) |
Request |
withCredentials(String username,
String password) |
Request |
withCustomizer(RequestCustomizer c) |
Request |
withEntity(org.apache.http.HttpEntity e) |
Request |
withHeader(String name,
String value) |
Request |
withRedirects(boolean followRedirectsAutomatically) |
public org.apache.http.client.methods.HttpUriRequest getRequest()
public Request withRedirects(boolean followRedirectsAutomatically)
public Request withContent(String content) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic Request withEntity(org.apache.http.HttpEntity e) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic Request withCustomizer(RequestCustomizer c)
public String getUsername()
public String getPassword()
public boolean getRedirects()
public RequestCustomizer getCustomizer()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.