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.
|
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()
HttpURLConnection.HTTP_OK.isError()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 HttpURLConnection.HTTP_OK.Copyright © 2015 Addicticks. All rights reserved.