|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.mpg.mpiz_koeln.featureClient.FeatureClientResult
public class FeatureClientResult
The class FeatureClientResult stores the results of a service call from the FeatureClient
.
It provides some utility methods to retrieve a webservice result depending if the service was called only once
getSingleCallResult()
or multiple times
getMultipleCallResult()
.
It additionally stores the MobyService
itself to determine which service returned this result. This is needed
as this structure is used in case of calling several webservices. In that case one needs to know which results comes
from which service.
Method Summary | ||
---|---|---|
MobyService |
getMobyService()
Returns the BioMOBY service which was called |
|
|
getMulipleCallResult(String id)
Returns the result from a multiple job call for a specific job id. |
|
|
getMulitpliCallResultAsOne()
|
|
|
getMultipleCallResult()
Returns the result from a multiple job call. |
|
|
getSingleCallResult()
Returns the result for a simple, one-time call (so non multiple call). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public MobyService getMobyService()
public <T> Collection<T> getSingleCallResult() throws FeatureClientException
T
- the concrete MobyObject (such as AminoAcidSequence etc)
FeatureClientException
- if the casting in the concrete object failedpublic <T> Collection<T> getMulipleCallResult(String id) throws FeatureClientException
T
- the concrete MobyObject (such as AminoAcidSequence etc)id
- the job id - normally the identifier of the input object
FeatureClientException
public <T> Map<String,Collection<T>> getMultipleCallResult() throws FeatureClientException
T
- the concrete MobyObject (such as AminoAcidSequence etc)
FeatureClientException
public <T> Collection<T> getMulitpliCallResultAsOne() throws FeatureClientException
FeatureClientException
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |