|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Response
This is the Response interface that should be implemented by any protocol specific response version.
| Method Summary | |
|---|---|
void |
appendParameter(java.lang.String name,
java.lang.Object value)
This method appends an Object to a parameter that is already stored or creates a new parameter if name is not used already. |
void |
appendParameters(java.lang.String name,
java.util.List values)
This method appends a List of Objects to a parameter that is already stored or creates a new parameter if name is not used already. |
java.lang.Object |
getContent()
This method returns the entire contents that comprised the response that was sent back from the server. |
long |
getDataTime()
Returns the time it took from making the request to the host to when all the response data is saved to the response object. |
java.util.Iterator |
getParameterKeys()
Returns an Iterator of all of the parameter values so that they user can get the list and then get the values. |
java.lang.Object |
getParameterValue(java.lang.String name)
Returns a single value that is associated with the name given. |
java.util.List |
getParameterValues(java.lang.String name)
Returns the values associated with this parameter as a List. |
Protocol |
getParentProtocol()
Returns the Protocol that was called that generated this Response object. |
int |
getResponseCode()
Returns the response code value received from the host |
java.lang.String |
getResponseMessage()
Returns the response code message. |
long |
getSetupTime()
Returns the amount of time it took to set-up the request but does not include the time to make the request or receive the response. |
long |
getTotalTime()
Returns the total time it took to set-up the request, communicate with the host, and save the response data to a response object. |
java.lang.String |
id()
Gets the id of this response object. |
void |
setContent(java.lang.Object content)
This method sets the content of this response. |
void |
setDataTime(long millis)
Sets the time it took from making the request to the host to when all the response data is saved to the response object. |
void |
setParameter(java.lang.String name,
java.lang.Object value)
This method stores something in this response to be used later by a process. |
void |
setParameters(java.lang.String name,
java.util.List values)
Sets a List of parameters to be stored with the associated name. |
void |
setParentProtocol(Protocol parent)
Sets the parent protocol of this Response object. |
void |
setResponseCode(int thecode)
Sets the response code value, used internally |
void |
setResponseMessage(java.lang.String rmsg)
Sets the response code message. |
void |
setSetupTime(long millis)
Sets the amount of time it took to set-up the request but does not include the time to make the request or receive the response. |
void |
setTotalTime(long millis)
Sets the total time it took to connect to the host, make the request and get all of the data back. |
java.lang.String |
toString()
Returns a string representation of all of the content that was returned from the server that made up this Response. |
| Method Detail |
|---|
java.lang.String id()
Protocol getParentProtocol()
void setResponseCode(int thecode)
String - responsecodeint getResponseCode()
java.lang.String getResponseMessage()
void setResponseMessage(java.lang.String rmsg)
void setParentProtocol(Protocol parent)
throws UnsupportedTypeException
parent - The Protocol that caused this Response to be returned.
UnsupportedTypeException - If for some reason the Parent type and the
the Response type are incompatible.java.lang.Object getContent()
void setContent(java.lang.Object content)
content - The content as a String.java.lang.String toString()
toString in class java.lang.Objectvoid setTotalTime(long millis)
millis - The time it took to do the whole connection.long getTotalTime()
void setDataTime(long millis)
millis - The time to get the data back from the host.long getDataTime()
void setSetupTime(long millis)
millis - The amount of time it takes to connect and send the request.long getSetupTime()
void setParameter(java.lang.String name,
java.lang.Object value)
name if one already exists.
name - The name to store this as.value - The object to associate with this name.
void setParameters(java.lang.String name,
java.util.List values)
name - The name of the parameter.values - The objects to associate with this param.
void appendParameter(java.lang.String name,
java.lang.Object value)
name is not used already.
name - The name of the parameter.value - The object to associate with this param.
void appendParameters(java.lang.String name,
java.util.List values)
name is not used already.
name - The name of the parameter.values - The objects to associate with this param.java.util.Iterator getParameterKeys()
java.lang.Object getParameterValue(java.lang.String name)
getParameterValues call instead.
name - The name of the parameter to get the value for.getParameterValues(java.lang.String)java.util.List getParameterValues(java.lang.String name)
name - The name of the parameter to get the value for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||