public class UploadResult
extends com.google.gwt.core.client.JavaScriptObject
| Modifier | Constructor and Description |
|---|---|
protected |
UploadResult()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends UploadResult> |
fromJSON(Class<T> rtype,
String jsonData)
Convert a string of json data into a useful bean.
|
static UploadResult |
fromResult(String resultData)
Convert the string returned by the
ArtifactUploadServlet into JSON and
then from there into an UploadResult bean. |
String |
get(String key)
Gets a value from the map.
|
SrampUiException |
getError()
Gets the error.
|
boolean |
isError()
Returns true if the response is an error response.
|
public static UploadResult fromResult(String resultData)
ArtifactUploadServlet into JSON and
then from there into an UploadResult bean.resultData - public final boolean isError()
public final SrampUiException getError()
public static final <T extends UploadResult> T fromJSON(Class<T> rtype, String jsonData)
jsonData - Copyright © 2011-2014 JBoss, a division of Red Hat. All Rights Reserved.