|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uws.job.SerializableUWSObject uws.job.Result
public class Result
This class gives a short description (mainly an ID and a URL) of a job result.
Field Summary | |
---|---|
protected java.lang.String |
href
[Optional] The readable URL which points toward the result file. |
protected java.lang.String |
id
[Required ; Default="result"] Name or ID of this result. |
protected java.lang.String |
type
[Optional] The type of result. |
Constructor Summary | |
---|---|
Result(java.lang.String name)
Builds a result with its ID/name. |
|
Result(java.lang.String name,
java.lang.String resultUrl)
Builds a result with an ID/name and the URL toward the file which contains the results. |
|
Result(java.lang.String name,
java.lang.String resultType,
java.lang.String resultUrl)
Builds a result with an ID/name, a result type and the URL toward the file which contains the results. |
|
Result(java.lang.String name,
java.lang.String resultType,
java.net.URL resultUrl)
Deprecated. Replaced by Result(String, String, String) . |
|
Result(java.lang.String name,
java.net.URL resultUrl)
Deprecated. Replaced by Result(String, String) . |
|
Result(java.net.URL resultUrl)
Builds a result with the URL toward the file which contains the results. |
Method Summary | |
---|---|
java.lang.String |
getHref()
Gets the URL of the result file. |
java.lang.String |
getId()
Gets the id/name of this result. |
java.lang.String |
getType()
Gets the type of this result. |
java.lang.String |
serialize(UWSSerializer serializer,
java.lang.String ownerId)
Serializes the whole object considering the given owner ID (supposed to be the ID of the current user) and thanks to the given serializer. |
java.lang.String |
toString()
|
Methods inherited from class uws.job.SerializableUWSObject |
---|
serialize, serialize, serialize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String id
protected java.lang.String href
protected java.lang.String type
Constructor Detail |
---|
public Result(java.lang.String name)
name
- Name or ID of the result.public Result(java.net.URL resultUrl)
resultUrl
- Result file URL.public Result(java.lang.String name, java.lang.String resultUrl)
name
- Name or ID of the result.resultUrl
- Result file URL.Result(String)
public Result(java.lang.String name, java.lang.String resultType, java.lang.String resultUrl)
name
- Name or ID or the result.resultType
- Type of result.resultUrl
- Result file URL.Result(String, String)
@Deprecated public Result(java.lang.String name, java.net.URL resultUrl)
Result(String, String)
.
name
- Name or ID of the result.resultUrl
- Result file URL.Result(String, String)
@Deprecated public Result(java.lang.String name, java.lang.String resultType, java.net.URL resultUrl)
Result(String, String, String)
.
name
- Name or ID or the result.resultType
- Type of result.resultUrl
- Result file URL.Result(String, String, String)
Method Detail |
---|
public final java.lang.String getId()
public final java.lang.String getHref()
public final java.lang.String getType()
public java.lang.String serialize(UWSSerializer serializer, java.lang.String ownerId) throws UWSException
SerializableUWSObject
serialize
in class SerializableUWSObject
serializer
- The serializer to use.ownerId
- The ID of the current user.
UWSException
- If there is an error during the serialization.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |