public interface IPortalComponentResponse
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(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
|
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(String aString)
Adds a String in this response.
|
static final int ERROR
static final int OK
void addCookie(Cookie cookie)
cookie - The feature to be added to the Cookie attributevoid addResource(IResource resource)
include(IPortalComponentRequest, IResource)
instead.resource - The feature to be added to the Resource attributevoid write(String aString)
aString - The String to be outputed in the response.Writer getWriter()
void include(IPortalComponentRequest aRequest, IResource aResource)
aRequest - the the client's requestaResource - the resource to include in the responcevoid include(IPortalComponentRequest aRequest, INode aNode)
aRequest - the the client's requestaNode - the node representing the target component.void setContentType(PortalComponentContentType type)
type - The new ContentType valuePortalComponentContentType getContentType()
void setStatus(int status)
status - The status to sentint getStatus()
IPortalComponentRequest getRequest()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice