public class RedirectableRequest extends Object
Constructor and Description |
---|
RedirectableRequest(URL request) |
RedirectableRequest(URL request,
int protocolRedirectLimit) |
Modifier and Type | Method and Description |
---|---|
int |
getConnectTimeout() |
int |
getProtocolRedirectLimit() |
int |
getReadTimeout() |
URL |
getRequest() |
URLConnection |
openConnection() |
URLConnection |
openConnection(Map<String,String> requestProperties) |
void |
setConnectTimeout(int connectTimeout) |
void |
setProtocolRedirectLimit(int protocolRedirectLimit) |
void |
setReadTimeout(int readTimeout) |
void |
setRequest(URL request) |
public RedirectableRequest(URL request)
public RedirectableRequest(URL request, int protocolRedirectLimit)
public URLConnection openConnection() throws IOException
IOException
public URLConnection openConnection(Map<String,String> requestProperties) throws IOException
IOException
public URL getRequest()
public void setRequest(URL request)
public int getProtocolRedirectLimit()
public void setProtocolRedirectLimit(int protocolRedirectLimit)
public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
public int getReadTimeout()
public void setReadTimeout(int readTimeout)
Copyright © 2022. All rights reserved.