public class BoxRedirectResponse extends BoxAPIResponse
This request type extends BoxAPIResponse to provide additional functionality for handling redirect URLs.
Constructor and Description |
---|
BoxRedirectResponse()
Constructs a BoxRedirectResponse without an associated HttpURLConnection.
|
BoxRedirectResponse(HttpURLConnection connection)
Constructs a BoxRedirectResponse using an HttpURLConnection.
|
Modifier and Type | Method and Description |
---|---|
URL |
getRedirectURL()
Gets the redirect URL for this response.
|
void |
setRedirectURL(URL redirectURL)
Sets the redirectURL for this response.
|
bodyToString, disconnect, getBody, getBody, getContentLength, getHeaderField, getHeaders, getResponseCode, toString
public BoxRedirectResponse()
public BoxRedirectResponse(HttpURLConnection connection)
connection
- a connection that has already sent a request to the API.public URL getRedirectURL()
public void setRedirectURL(URL redirectURL)
redirectURL
- the redirect URL