public class HttpsFileUploaderResult extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
HttpsFileUploaderResult(int httpStatusCode,
String responseText) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHttpStatusCode()
Gets the HTTP response status code.
|
Utils.HttpStatusCode |
getHttpStatusCodeEnum()
Gets the HTTP response status code as an enum.
|
String |
getResponseText()
Gets the response text from an upload request.
|
String |
getResponseTextNoHtml()
Gets the response text from an upload request.
|
boolean |
isError()
Convenience method.
|
protected HttpsFileUploaderResult(int httpStatusCode,
String responseText)
public int getHttpStatusCode()
200.
To get the text that represents the given HTTP status code the
method Utils.getHttpStatusCodeText(int) can be used.
getHttpStatusCodeEnum(),
isError()public Utils.HttpStatusCode getHttpStatusCodeEnum()
null if the numerical status code is unknown in the enum.
For a successful upload this should be equal to
Utils.HttpStatusCode.HTTP_OK.
getHttpStatusCode()public String getResponseText()
public String getResponseTextNoHtml()
getResponseText() but all HTML has been stripped from the text
and <br>, <p>, <h1>, <h2> and <h3>
has been replaced with newline characters for readability.public boolean isError()
getHttpStatusCode()
is anything other than Utils.HttpStatusCode.HTTP_OK.Copyright © 2016 Addicticks. All rights reserved.