|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.wbi.ServiceResult
This gets returned by the service calls and transform calls as well as by FetchUrl.fecth(...) --- it encapsulates a Transaction, MegInputStream (to read data from), and a RequestInfo (structured data about this request/response).
| Field Summary | |
protected static com.ibm.wbi.RASTraceLogger |
tracer
|
| Constructor Summary | |
ServiceResult(Transaction t)
Create a serviceResult object. |
|
| Method Summary | |
MegInputStream |
getMegInputStream()
Get the input stream to read the response from. |
MegInputStream |
getMegInputStream(long timeout)
Get the input stream to read the response from. |
MegReader |
getMegReader()
Get the character stream to read the response from. |
MegReader |
getMegReader(java.lang.String encoding)
Get the character stream to read the response from. |
RequestInfo |
getRequestInfo()
Gets the RequestInfo. |
RequestInfo |
getRequestInfo(long timeout)
Gets the RequestInfo. |
Transaction |
getTransaction()
Gets the Transaction object. |
void |
setMegInputStream(MegInputStream s)
Sets meg input stream this transaction. |
void |
setRequestInfo(RequestInfo requestInfo)
Sets RequestInfo for this transaction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static com.ibm.wbi.RASTraceLogger tracer
| Constructor Detail |
public ServiceResult(Transaction t)
t - Transaction object associated with this result.| Method Detail |
public MegInputStream getMegInputStream()
getMegInputStream in interface ResponseToRequestpublic MegInputStream getMegInputStream(long timeout)
timeout - a long representing the amount of time to
wait to get this stream before returning. If the timeout
happens before the stream is available, this returns
null.
public MegReader getMegReader()
throws java.io.UnsupportedEncodingException,
com.ibm.wbi.NotCharDataException
getMegReader in interface ResponseToRequest
public MegReader getMegReader(java.lang.String encoding)
throws java.io.UnsupportedEncodingException,
com.ibm.wbi.NotCharDataException
encoding - The encoding to use.public void setMegInputStream(MegInputStream s)
s - MegInputStream resulting from this transaction.public void setRequestInfo(RequestInfo requestInfo)
requestInfo - The RequestInfo for this transaction.public Transaction getTransaction()
getTransaction in interface ResponseToRequestpublic RequestInfo getRequestInfo()
getRequestInfo in interface ResponseToRequestpublic RequestInfo getRequestInfo(long timeout)
timeout - a long representing the amount of time to
wait to get this stream before returning. If the timeout
happens before the stream is available, this returns
null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||