|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.portal.outbound.service.ApplicationContextBean
public class ApplicationContextBean
An application context.
This bean holds the context information for the outbound connection service in a bean.
Code example:
PortletRequest request;
PortletResponse response;
...
ApplicationContextBean applicationContext = new ApplicationContextBean();
applicationContext.setRequestResponse(request, response);
...
javax.naming.Context ctx = new javax.naming.InitialContext();
OutboundConnectionServiceHome home = (OutboundConnectionServiceHome) ctx.lookup("portal:service/model/OutboundConnectionService");
OutboundConnectionService connectionService = home.getOutboundConnectionService (applicationContext);
home.
NOTE: This API may only be used in the scope of an HTTP request in WebSphere Portal, i.e. within a theme.
The API can not be invoked directly by a custom servlet.
OutboundConnectionServiceHome
Constructor Summary | |
---|---|
ApplicationContextBean()
|
Method Summary | |
---|---|
java.lang.String |
getApplicationContext()
return the application context. |
java.lang.String |
getMapping()
Return the mapping context, if a mapping context was defined. |
javax.portlet.PortletRequest |
getPortletRequest()
return the portlet request object |
javax.portlet.PortletResponse |
getPortletResponse()
return the portlet response object |
javax.servlet.http.HttpServletRequest |
getServletRequest()
return the servlet request object |
javax.servlet.http.HttpServletResponse |
getServletResponse()
return the servlet response object |
java.util.Map<java.lang.String,java.lang.String> |
getVariables()
Return a map that contains the dynamic variables |
void |
setApplicationContext(java.lang.String context)
Set the application context from which the service is invoked. |
void |
setMapping(java.lang.String mapping)
Set the mapping context. |
void |
setRequestResponse(javax.servlet.http.HttpServletRequest sreq,
javax.servlet.http.HttpServletResponse srsp)
Set the servlet request or response object. |
void |
setRequestResponse(javax.portlet.PortletRequest preq,
javax.portlet.PortletResponse prsp)
Set the portlet request or response object. |
void |
setVariables(java.util.Map<java.lang.String,java.lang.String> vars)
Define runtime variables to the outbound connection service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationContextBean()
Method Detail |
---|
public javax.servlet.http.HttpServletRequest getServletRequest()
public javax.servlet.http.HttpServletResponse getServletResponse()
public javax.portlet.PortletRequest getPortletRequest()
public javax.portlet.PortletResponse getPortletResponse()
public java.util.Map<java.lang.String,java.lang.String> getVariables()
public java.lang.String getMapping()
public java.lang.String getApplicationContext()
public void setVariables(java.util.Map<java.lang.String,java.lang.String> vars)
vars
- a map that contains the set if variables to be used for this service.
May be null or empty.public void setMapping(java.lang.String mapping)
mapping
- the mapping context. may be null - in that case, the default mapping is used for the outbound connection.public void setApplicationContext(java.lang.String context)
context
- The application context. The following values are allowed:
public void setRequestResponse(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse srsp)
sreq
- the Servlet request. must not be null.srsp
- the Servlet response. must not be null.public void setRequestResponse(javax.portlet.PortletRequest preq, javax.portlet.PortletResponse prsp)
preq
- the Portlet request. must not be null.prsp
- the Portlet response. must not be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |