com.sap.portal.prt.servlets_jsp

Class JSPResponse

java.lang.Object
  extended by com.sap.portal.prt.servlets_jsp.JSPResponse
All Implemented Interfaces:
IPortalComponentResponse

public class JSPResponse
extends Object
implements IPortalComponentResponse


Field Summary
protected  JspWriter m_jspWriter
           
protected  int mm_status
           
 
Fields inherited from interface com.sapportals.portal.prt.component.IPortalComponentResponse
ERROR, OK
 
Constructor Summary
JSPResponse(IPortalComponentResponse parentResponse)
           
 
Method Summary
 void addCookie(Cookie cookie)
          Helper method to add a cookie in the response
 void addResource(IResource resource)
          Deprecated.  
 PortalComponentContentType getContentType()
          Returns the reponse type of this response
 IPortalComponentResponse getParentResponse()
           
 IPortalComponentRequest getRequest()
          Deprecated.  
 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 resource)
          Includes the content of a Resource in this response.
 void setContentType(PortalComponentContentType type)
          Sets the response type of this response.
 void setJspWriter(JspWriter writer)
           
 void setStatus(int status)
          Sets the status of the response
 void write(String parm1)
          Adds a String in this response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_jspWriter

protected JspWriter m_jspWriter

mm_status

protected int mm_status
Constructor Detail

JSPResponse

public JSPResponse(IPortalComponentResponse parentResponse)
Method Detail

getContentType

public PortalComponentContentType getContentType()
Description copied from interface: IPortalComponentResponse
Returns the reponse type of this response

Specified by:
getContentType in interface IPortalComponentResponse
Returns:
The ContentType value

getWriter

public Writer getWriter()
Description copied from interface: IPortalComponentResponse
Gets the writer associated to this response

Specified by:
getWriter in interface IPortalComponentResponse
Returns:
the writer of this response.

setJspWriter

public void setJspWriter(JspWriter writer)

include

public void include(IPortalComponentRequest aRequest,
                    IResource resource)
Description copied from interface: IPortalComponentResponse
Includes the content of a Resource in this response.

Specified by:
include in interface IPortalComponentResponse
Parameters:
aRequest - the the client's request
resource - the resource to include in the responce

include

public void include(IPortalComponentRequest aRequest,
                    INode aNode)
Description copied from interface: IPortalComponentResponse
Includes the content of another Portal Component in this response. The content of the target component is added in the current content of this response.

Specified by:
include in interface IPortalComponentResponse
Parameters:
aRequest - the the client's request
aNode - the node representing the target component.

addCookie

public void addCookie(Cookie cookie)
Description copied from interface: IPortalComponentResponse
Helper method to add a cookie in the response

Specified by:
addCookie in interface IPortalComponentResponse
Parameters:
cookie - The feature to be added to the Cookie attribute

write

public void write(String parm1)
Description copied from interface: IPortalComponentResponse
Adds a String in this response.

Specified by:
write in interface IPortalComponentResponse
Parameters:
parm1 - The String to be outputed in the response.

setContentType

public void setContentType(PortalComponentContentType type)
Description copied from interface: IPortalComponentResponse
Sets the response type of this response.
This value does not correspond to the final content type returned to the browser. It 's only relevant for the current proccession portal component that may want to render alternate content type.

Specified by:
setContentType in interface IPortalComponentResponse
Parameters:
type - The new ContentType value

addResource

public void addResource(IResource resource)
Deprecated. 

Description copied from interface: IPortalComponentResponse
Adds a resource in the response. This method provides a generic mechanism to output any kind of resource in the response.

Specified by:
addResource in interface IPortalComponentResponse
Parameters:
resource - The feature to be added to the Resource attribute
See Also:
IPortalComponentResponse.addResource(IResource)

getParentResponse

public IPortalComponentResponse getParentResponse()

setStatus

public void setStatus(int status)
Sets the status of the response

Specified by:
setStatus in interface IPortalComponentResponse
Parameters:
status - The status to sent

getStatus

public int getStatus()
Gets the status of the response

Specified by:
getStatus in interface IPortalComponentResponse
Returns:
the status as an int

getRequest

public IPortalComponentRequest getRequest()
Deprecated. 

Description copied from interface: IPortalComponentResponse
Gets an associated request object.

Specified by:
getRequest in interface IPortalComponentResponse
Returns:
the associated request object
See Also:
IPortalComponentResponse.getRequest()
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice