|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents the response objects in PTG Runtime.
| Method Summary | |
void |
addResponseListener(ResponseListener listener)Add a listener for events from this response. |
void |
addResponseListeners(java.util.Vector listeners)Add a collection of listeners for events from response object. |
java.lang.String |
getCharacterEncoding()Get the language and locale used for character encoding |
java.lang.String |
getContent()Get the response string. |
java.lang.String |
getContent(Device device)Get the response string rendered by the specified device transformer. |
org.w3c.dom.Element |
getXMLContent()Get the response data in XML document format. |
void |
removeResponseListener(ResponseListener listener)Remove a listener for events from this response. |
void |
removeResponseListeners(java.util.Vector listeners)Remove a collection of listeners for events from response object. |
void |
sendRedirect(java.lang.String location)Send a URL to redirect the user agent or runtime agent to another location. |
void |
setContent(byte[] result, java.lang.String contentType, int contentLength)Set the device result given in the device's markup language. |
void |
setContent(java.lang.String ml)Set the response string. |
void |
setXMLContent(org.w3c.dom.Element xml)Set the response data in XML document format. |
| Method Detail |
public java.lang.String getCharacterEncoding()
public void sendRedirect(java.lang.String location)
throws java.io.IOException
location - the URL for the new targetjava.io.IOExceptionpublic java.lang.String getContent()
public java.lang.String getContent(Device device)
throws java.lang.Exception
device - the device to be rendered forjava.lang.Exceptionpublic org.w3c.dom.Element getXMLContent()
public void addResponseListener(ResponseListener listener)
public void removeResponseListener(ResponseListener listener)
public void addResponseListeners(java.util.Vector listeners)
public void removeResponseListeners(java.util.Vector listeners)
public void setContent(java.lang.String ml)
ml - the response string in some markup language
public void setContent(byte[] result,
java.lang.String contentType,
int contentLength)
public void setXMLContent(org.w3c.dom.Element xml)
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||