|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpl.aislib.fm.PageResponse
Class encapsulating response from the Page.getPageResponse() method.
Page Response should be in one of the main forms:
Application class methods
(substituted into proper template) and send to Client.
Note:
Map given as argument for some of the constructors should always
contain pair ('page', Action Key for Page creating this response).
If such a Map will not contain this pair, we will modify it and add
appropriate pair.
| Tomasz Pik, AIS.PL |
| Michal Jastak, AIS.PL |
| Constructor Summary | |
PageResponse(Page page)
Sole constructor for empty response. |
|
PageResponse(Page page,
byte[] content,
java.lang.String contentType)
Constructor for raw type response. |
|
PageResponse(Page page,
java.util.Map content)
Constructor for (key, value) type response. |
|
PageResponse(Page page,
java.util.Map content,
java.lang.String contentType)
Constructor for (key, value) type response, using specified content type for response. |
|
| Method Summary | |
byte[] |
getContentByte()
Returns raw response content if any. |
java.util.Map |
getContentMap()
Returns response (key, value) mapping if any. |
java.lang.String |
getContentType()
Returns response content type. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PageResponse(Page page)
page - Page creating this response.
public PageResponse(Page page,
byte[] content,
java.lang.String contentType)
page - Page creating this response.content - raw content of response written as byte table.contentType - content type of response.
public PageResponse(Page page,
java.util.Map content)
page - Page creating this response.content - response written as (key, value) mapping.
public PageResponse(Page page,
java.util.Map content,
java.lang.String contentType)
page - Page creating this response.content - response written as (key, value) mapping.contentType - content type of response.| Method Detail |
public java.lang.String getContentType()
public java.util.Map getContentMap()
public byte[] getContentByte()
public java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||