|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.ibm.workflow.servlet.client.ResponsePage
Objects of this class represent the responses sent by the Web Client.
They are created by the various commandResponse methods of a
Viewer.
To return a static HTML page use
return ResponsePage(context, "/static.html");
| Field Summary | |
static java.lang.String |
MIMETYPE_HTML
Constant for text/html |
static java.lang.String |
MIMETYPE_JPEG
Constant for image/jpeg |
static java.lang.String |
MIMETYPE_WML
Constant for text/vnd.wap.wml |
static java.lang.String |
MIMETYPE_XML
Constant for text/xml |
| Constructor Summary | |
ResponsePage(byte[] contents,
java.lang.String mimeType)
Create a response page from a byte array. |
|
ResponsePage(byte[] contents,
java.lang.String mimeType,
long date)
Create a response page from a byte array. |
|
ResponsePage(RequestContext context,
java.lang.String urlname)
Create a response page from a URL. |
|
ResponsePage(RequestContext context,
java.lang.String urlname,
long date)
Create a response page from a URL. |
|
ResponsePage(java.lang.StringBuffer contents)
Create a response page from a StringBuffer. |
|
ResponsePage(java.lang.StringBuffer contents,
java.lang.String mimeType)
Create a response page from a StringBuffer. |
|
ResponsePage(java.lang.StringBuffer contents,
java.lang.String mimeType,
long date)
Create a response page from a StringBuffer. |
|
| Method Summary | |
void |
setExpiryDate(long time)
Set the expiry date of the reponse page. |
void |
setMimeType(java.lang.String mimeType)
Set the MIME type of the reponse page. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String MIMETYPE_HTML
text/htmlpublic static final java.lang.String MIMETYPE_XML
text/xmlpublic static final java.lang.String MIMETYPE_WML
text/vnd.wap.wmlpublic static final java.lang.String MIMETYPE_JPEG
image/jpeg| Constructor Detail |
public ResponsePage(java.lang.StringBuffer contents)
contents - The buffer containing the response.
public ResponsePage(java.lang.StringBuffer contents,
java.lang.String mimeType)
contents - The buffer containing the response.mimeType - The MIME type of the response.
public ResponsePage(java.lang.StringBuffer contents,
java.lang.String mimeType,
long date)
contents - The buffer containing the response.mimeType - The MIME type of the response.date - The expiry date of the page
public ResponsePage(byte[] contents,
java.lang.String mimeType)
contents - The buffer containing the response.mimeType - The MIME type of the response.
public ResponsePage(byte[] contents,
java.lang.String mimeType,
long date)
contents - The buffer containing the response.mimeType - The MIME type of the response.date - The expiry date of the page
public ResponsePage(RequestContext context,
java.lang.String urlname)
<MQWFDir>/WebClient/webpages). The context
passed as parameter can then be accessed in the JSP using the following
code:
<jsp:useBean id="context" scope="request"
type="com.ibm.workflow.servlet.client.RequestContext"/>
context - The context that was passed to the Viewer's
commandResponse method. Must not be null.urlname - The relative URL of the page to be sent as response. This
can be either an HTML page or a JSP.
public ResponsePage(RequestContext context,
java.lang.String urlname,
long date)
<MQWFDir>/WebClient/webpages). The context
passed as parameter can then be accessed in the JSP using the following
code:
<jsp:useBean id="context" scope="request"
type="com.ibm.workflow.servlet.client.RequestContext"/>
context - The context that was passed to the Viewer's
commandResponse method. Must not be null.urlname - The relative URL of the page to be sent as response. This
can be either an HTML page or a JSP.date - The expiry date of the page| Method Detail |
public void setMimeType(java.lang.String mimeType)
mimeType - The MIME type of the response page.public void setExpiryDate(long time)
date - The expiry date of the page
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||