|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.wps.outbound.config.VPScope
public class VPScope
This convenience class implements the VirtualPortalScope
interface for users of the
OutboundConnectionModelProvider
method. The VirtualPortalScope
interface is required to
instantiate an outbound HTTP connection model for a certain virtual portal.
Code example:
javax.naming.Context ctx = new javax.naming.InitialContext();
VirtualPortalScope vp = VPScope.byContextPath("myvirtual");
OutboundConnectionModelHome home = (OutboundConnectionModelHome) ctx.lookup("portal:service/model/OutboundConnectionModel");
OutboundConnectionModel model = home.getOutboundConnectionModelProvider().getOutboundConnectionModel(vp);
CreationContext
,
OutboundConnectionModelController
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.ibm.portal.outbound.config.VirtualPortalScope |
---|
VirtualPortalScope.AnyVirtualPortalScope |
Field Summary | |
---|---|
static VirtualPortalScope |
ANY
This special VirtualPortalScope object defines a scope for any virtual portal that is defined in the system. |
static VirtualPortalScope |
ROOT
VirtualPortalScope object for the root portal. |
Method Summary | |
---|---|
static VirtualPortalScope |
byContextAndHostName(java.lang.String context,
java.lang.String hostname)
return an VirtualPortalScope object that identifies the root Virtual portal which is mapped to the specified virtual portal hostname. |
static VirtualPortalScope |
byContextPath(java.lang.String context)
return an VirtualPortalScope object that identifies the root Virtual portal which is mapped to the specified context path. |
static VirtualPortalScope |
byHostName(java.lang.String hostname)
return an VirtualPortalScope object that identifies the root Virtual portal which is mapped to the specified virtual portal hostname. |
java.lang.String |
getVirtualPortalContextPath()
Return the context path that identifies the virtual portal |
java.lang.String |
getVirtualPortalHostname()
Return the host name that identifies the virtual portal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final VirtualPortalScope ANY
public static final VirtualPortalScope ROOT
Method Detail |
---|
public static VirtualPortalScope byContextPath(java.lang.String context)
public static VirtualPortalScope byHostName(java.lang.String hostname)
public static VirtualPortalScope byContextAndHostName(java.lang.String context, java.lang.String hostname)
public java.lang.String getVirtualPortalContextPath()
VirtualPortalScope
getVirtualPortalContextPath
in interface VirtualPortalScope
public java.lang.String getVirtualPortalHostname()
VirtualPortalScope
getVirtualPortalHostname
in interface VirtualPortalScope
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |