|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The IPortalComponentResponse encapsulates all the information sent from the Portal Component to the Client.
| Field Summary | |
static int |
ERROR
|
static int |
OK
|
| Method Summary | |
void |
addCookie(javax.servlet.http.Cookie cookie)
Helper method to add a cookie in the response |
void |
addResource(IResource resource)
Deprecated. This method is not recommended to be used anymore. It might lead to unexpected results due to the undefined coupling of a request object to a response object. Please use include(IPortalComponentRequest, IResource)
instead. |
PortalComponentContentType |
getContentType()
Returns the reponse type of this response |
IPortalComponentRequest |
getRequest()
Deprecated. Note: this method should not be called. It is only used in conjunction with addResource, which is deprecated also. The association of a request object with a response object is not "design-stable". |
int |
getStatus()
Gets the status of the response |
java.io.Writer |
getWriter()
Gets the writer associated to this response |
void |
include(IPortalComponentRequest aRequest,
INode aNode)
Includes the content of another Portal Component in this response. |
void |
include(IPortalComponentRequest aRequest,
IResource aResource)
Includes the content of a Resource in this response. |
void |
setContentType(PortalComponentContentType type)
Sets the response type of this response. |
void |
setStatus(int status)
Sets the status of the response |
void |
write(java.lang.String aString)
Adds a String in this response. |
| Field Detail |
public static final int ERROR
public static final int OK
| Method Detail |
public void addCookie(javax.servlet.http.Cookie cookie)
cookie - The feature to be added to the Cookie attributepublic void addResource(IResource resource)
include(IPortalComponentRequest, IResource)
instead.
resource - The feature to be added to the Resource attributepublic void write(java.lang.String aString)
aString - The String to be outputed in the response.public java.io.Writer getWriter()
public void include(IPortalComponentRequest aRequest,
IResource aResource)
aRequest - the the client's requestaResource - the resource to include in the responce
public void include(IPortalComponentRequest aRequest,
INode aNode)
aRequest - the the client's requestaNode - the node representing the target component.public void setContentType(PortalComponentContentType type)
type - The new ContentType valuepublic PortalComponentContentType getContentType()
public void setStatus(int status)
status - The status to sentpublic int getStatus()
public IPortalComponentRequest getRequest()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||