|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents the response objects in PTG Runtime.
Method Summary |
Type | Method |
---|---|
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 targetpublic java.lang.String getContent()
public java.lang.String getContent(Device device) throws java.lang.Exception
device
- the device to be rendered forpublic 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 languagepublic void setContent(byte[] result, java.lang.String contentType, int contentLength)
public void setXMLContent(org.w3c.dom.Element xml)
root
- the root element of the XML document
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |