public class HttpURLConnectionRequest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
connectTimeout |
protected byte[] |
payload |
protected java.net.Proxy |
proxy |
protected int |
readTimeout |
protected java.lang.String |
requestMethod |
protected java.util.Map<java.lang.String,java.lang.String> |
requestProperties |
protected java.net.URL |
url |
| Constructor and Description |
|---|
HttpURLConnectionRequest(java.lang.String requestMethod,
java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectTimeout() |
byte[] |
getPayload() |
java.net.Proxy |
getProxy() |
int |
getReadTimeout() |
java.lang.String |
getRequestMethod() |
java.util.Map<java.lang.String,java.lang.String> |
getRequestProperties() |
java.net.URL |
getURL() |
void |
setConnectTimeout(int connectTimeout) |
void |
setPayload(byte[] payload) |
void |
setProxy(java.net.Proxy proxy) |
void |
setReadTimeout(int readTimeout) |
protected int connectTimeout
protected byte[] payload
protected java.net.Proxy proxy
protected int readTimeout
protected final java.lang.String requestMethod
protected final java.util.Map<java.lang.String,java.lang.String> requestProperties
protected final java.net.URL url
public HttpURLConnectionRequest(java.lang.String requestMethod,
java.net.URL url)
requestMethod - Any values of : GET, POST, HEAD, OPTIONS, PUT, DELETE, TRACEurl - URL of the service end point including the query parameters.HttpURLConnection.setRequestMethod(java.lang.String),
URL.openConnection()public int getConnectTimeout()
public byte[] getPayload()
public java.net.Proxy getProxy()
public int getReadTimeout()
public java.lang.String getRequestMethod()
public java.util.Map<java.lang.String,java.lang.String> getRequestProperties()
URLConnection.addRequestProperty(String, String)public java.net.URL getURL()
public void setConnectTimeout(int connectTimeout)
connectTimeout - an int that specifies the connect timeout value in milliseconds.HttpURLConnectionService.setConnectTimeout(int),
URLConnection.setConnectTimeout(int)public void setPayload(byte[] payload)
payload - bytes sent as part of the HTTP request.URLConnection.getOutputStream(),
HttpURLConnection.setFixedLengthStreamingMode(int)public void setProxy(java.net.Proxy proxy)
proxy - URL.openConnection(Proxy)public void setReadTimeout(int readTimeout)
readTimeout - an int that specifies the timeout value to be used in milliseconds.HttpURLConnectionService.setReadTimeout(int),
URLConnection.setReadTimeout(int)Copyright © 2018 SAP SE. All Rights Reserved.