|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object m.c.m.proxyma.resource.ProxymaResponse
public abstract class ProxymaResponse
This is the "Adapter" abstract class that will be used by Proxyma to manage
client responses.
Any concrete class that extends this one can be used by Proxyma to send Client responses.
Through this class Proxyma can transparently handle "Servlet" or
"Portlet" responses in the same way.
NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.
Constructor Summary | |
---|---|
ProxymaResponse()
|
Method Summary | |
---|---|
ProxymaResponseDataBean |
getResponseData()
Returns the ResponseDataBEan that countains all the data of the response. |
boolean |
hasBeenSent()
Return the value of the already-sent flag. |
abstract int |
sendDataToClient()
Serializes and sends the data of the response to the client. |
void |
sendingData()
Sets the value of the already-sent flag to "true" This method should be used by any implementation of "sendDataToClient" to declare the response as sent. |
void |
setResponseData(ProxymaResponseDataBean responseData)
Set the new ResponseDataBean overwriting any previous value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxymaResponse()
Method Detail |
---|
public void setResponseData(ProxymaResponseDataBean responseData)
responseData
- the new data for the response.ProxymaResponseDataBean
public ProxymaResponseDataBean getResponseData()
ProxymaResponseDataBean
public boolean hasBeenSent()
public void sendingData()
public abstract int sendDataToClient() throws java.lang.IllegalStateException, java.io.IOException
java.lang.IllegalStateException
- if the hasBeenSent method-call returns "true".
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |