public class PortletContext extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
PortletContext.Components |
static interface |
PortletContext.PortletContextComponents |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONSUMER_CLONE_DUMMY_STATE_ID |
static String |
CONSUMER_CLONE_ID |
static String |
CONSUMER_CLONE_ID_PREFIX |
static int |
CONSUMER_CLONE_PREFIX_LENGTH |
static String |
INVALID_PORTLET_CONTEXT |
static String |
INVOKER_SEPARATOR
The separator used in the id to route to the correct invoker.
|
static PortletContext |
LOCAL_CONSUMER_CLONE |
static String |
PRODUCER_CLONE_ID_PREFIX |
static int |
PRODUCER_CLONE_PREFIX_LENGTH |
| Modifier | Constructor and Description |
|---|---|
protected |
PortletContext(PortletContext.Components components) |
protected |
PortletContext(String id) |
protected |
PortletContext(String id,
boolean interpret) |
| Modifier and Type | Method and Description |
|---|---|
static PortletContext |
createPortletContext(String portletId)
Creates a PortletContext by interpreting the specified identifier and breaking it down to its components.
|
static PortletContext |
createPortletContext(String portletId,
boolean interpret) |
static PortletContext |
createPortletContext(String id,
byte[] state)
Deprecated.
|
static PortletContext |
createPortletContext(String portletId,
byte[] state,
boolean interpret) |
static PortletContext |
createPortletContext(String applicationName,
String portletName)
Creates a new PortletContext referencing the specified portlet in the specified application (usually a web
application).
|
static StatefulPortletContext<byte[]> |
createStatefulPortletContext(String id,
byte[] state)
Deprecated.
|
static PortletContext |
dereference(PortletContext compoundPortletContext) |
boolean |
equals(Object o) |
PortletContext.PortletContextComponents |
getComponents() |
String |
getId() |
int |
hashCode() |
protected PortletContext.Components |
interpret() |
static PortletContext |
reference(String invokerId,
PortletContext portletContext) |
String |
toString() |
public static final String INVOKER_SEPARATOR
public static final String PRODUCER_CLONE_ID_PREFIX
public static final int PRODUCER_CLONE_PREFIX_LENGTH
public static final String CONSUMER_CLONE_ID_PREFIX
public static final int CONSUMER_CLONE_PREFIX_LENGTH
public static final String CONSUMER_CLONE_DUMMY_STATE_ID
public static final String CONSUMER_CLONE_ID
public static final PortletContext LOCAL_CONSUMER_CLONE
public static final String INVALID_PORTLET_CONTEXT
protected PortletContext(String id) throws IllegalArgumentException
IllegalArgumentExceptionprotected PortletContext(String id, boolean interpret)
protected PortletContext(PortletContext.Components components)
public static PortletContext dereference(PortletContext compoundPortletContext)
protected PortletContext.Components interpret()
public static PortletContext reference(String invokerId, PortletContext portletContext)
public String getId()
@Deprecated public static PortletContext createPortletContext(String id, byte[] state)
id - the portlet idstate - the optional state@Deprecated public static StatefulPortletContext<byte[]> createStatefulPortletContext(String id, byte[] state)
createPortletContext(String, byte[]) for cases when a state is expected and the
creation of the PortletContext should fail if no state was given.id - the portlet idstate - the mandatory statepublic static PortletContext createPortletContext(String portletId)
createPortletContext(String, String) to create the PortletContext from its
components instead of trying to build it manually. In case a PortletContext namespaced by a PortletInvoker id is
needed, please use reference(String, PortletContext).portletId - the portlet identifier to interpret as a PortletContextIllegalArgumentException - if the specified identifier cannot be properly interpreted into componentsinterpretIntoComponents(String)public static PortletContext createPortletContext(String portletId, boolean interpret)
public static PortletContext createPortletContext(String portletId, byte[] state, boolean interpret)
public static PortletContext createPortletContext(String applicationName, String portletName)
applicationName - the application name (usually a web application context path)portletName - the portlet nameIllegalArgumentException - if the specified arguments are null or empty and if the application name is not
properly formatted.public PortletContext.PortletContextComponents getComponents()
Copyright © 2003-2018 GateIn. All Rights Reserved.