|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.wsrp.consumer.WSRPConsumerImpl
public class WSRPConsumerImpl
| Field Summary |
|---|
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.system.ServiceMBean |
|---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
|---|---|
WSRPConsumerImpl()
|
|
| Method Summary | |
|---|---|
void |
activate()
Prepares this Consumer to be used: service is started, endpoints are ready. |
org.jboss.portal.portlet.PortletContext |
createClone(org.jboss.portal.portlet.PortletContext portletContext)
|
void |
deactivate()
Removes this Consumer from service. |
java.util.List |
destroyClones(java.util.List portletContexts)
|
WSRP_v1_Markup_PortType |
getMarkupService()
|
org.jboss.portal.portlet.Portlet |
getPortlet(org.jboss.portal.portlet.PortletContext portletContext)
|
java.util.Map<java.lang.String,java.util.Set<org.jboss.portal.portlet.Portlet>> |
getPortletGroupMap()
|
WSRP_v1_PortletManagement_PortType |
getPortletManagementService()
|
java.util.Set |
getPortlets()
|
java.lang.String |
getProducerId()
Retrieves the identifier for the producer this consumer is associated with. |
ProducerInfo |
getProducerInfo()
|
ProducerSessionInformation |
getProducerSessionInformationFrom(javax.servlet.http.HttpSession session)
Retrieves the session information for the producer associated with this consumer. |
ProducerSessionInformation |
getProducerSessionInformationFrom(org.jboss.portal.portlet.invocation.PortletInvocation invocation)
Retrieves the session information for the producer associated with this consumer. |
org.jboss.portal.portlet.state.PropertyMap |
getProperties(org.jboss.portal.portlet.PortletContext portletContext)
|
org.jboss.portal.portlet.state.PropertyMap |
getProperties(org.jboss.portal.portlet.PortletContext portletContext,
java.util.Set keys)
|
WSRP_v1_Registration_PortType |
getRegistrationService()
|
WSRP_v1_ServiceDescription_PortType |
getServiceDescriptionService()
|
SessionHandler |
getSessionHandler()
|
java.util.Set |
getSupportedUserScopes()
|
org.jboss.portal.portlet.invocation.response.PortletInvocationResponse |
invoke(org.jboss.portal.portlet.invocation.PortletInvocation invocation)
|
boolean |
isActive()
|
boolean |
isRefreshNeeded()
|
void |
onEvent(PortalEventContext eventContext,
PortalEvent event)
Just delegate to SessionHandler |
RefreshResult |
refresh(boolean forceRefresh)
|
void |
refreshProducerInfo()
|
void |
releaseSessions()
Releases all the sessions held by this Consumer |
void |
setProducerInfo(ProducerInfo producerInfo)
|
org.jboss.portal.portlet.PortletContext |
setProperties(org.jboss.portal.portlet.PortletContext portletContext,
org.jboss.portal.portlet.state.PropertyChange[] changes)
|
void |
setServiceFactory(ServiceFactory serviceFactory)
Needed to wire Consumer tests. |
protected void |
startService()
|
protected void |
stopService()
|
boolean |
supportsUserScope(java.lang.String userScope)
Determines whether the specified user scope (for markup caching) is supported. |
| Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService |
|---|
create, destroy, getState, getStateString, start, stop |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.system.Service |
|---|
create, destroy, start, stop |
| Constructor Detail |
|---|
public WSRPConsumerImpl()
| Method Detail |
|---|
public ProducerInfo getProducerInfo()
getProducerInfo in interface WSRPConsumerpublic void setProducerInfo(ProducerInfo producerInfo)
setProducerInfo in interface WSRPConsumer
public java.util.Set getPortlets()
throws org.jboss.portal.portlet.InvokerUnavailableException
getPortlets in interface org.jboss.portal.portlet.PortletInvokerorg.jboss.portal.portlet.InvokerUnavailableException
public org.jboss.portal.portlet.Portlet getPortlet(org.jboss.portal.portlet.PortletContext portletContext)
throws java.lang.IllegalArgumentException,
org.jboss.portal.portlet.PortletInvokerException
getPortlet in interface org.jboss.portal.portlet.PortletInvokerjava.lang.IllegalArgumentException
org.jboss.portal.portlet.PortletInvokerException
public org.jboss.portal.portlet.invocation.response.PortletInvocationResponse invoke(org.jboss.portal.portlet.invocation.PortletInvocation invocation)
throws org.jboss.portal.portlet.PortletInvokerException
invoke in interface org.jboss.portal.portlet.PortletInvokerorg.jboss.portal.portlet.PortletInvokerException
public org.jboss.portal.portlet.PortletContext createClone(org.jboss.portal.portlet.PortletContext portletContext)
throws java.lang.IllegalArgumentException,
org.jboss.portal.portlet.PortletInvokerException,
java.lang.UnsupportedOperationException
createClone in interface org.jboss.portal.portlet.PortletInvokerjava.lang.IllegalArgumentException
org.jboss.portal.portlet.PortletInvokerException
java.lang.UnsupportedOperationException
public java.util.List destroyClones(java.util.List portletContexts)
throws java.lang.IllegalArgumentException,
org.jboss.portal.portlet.PortletInvokerException,
java.lang.UnsupportedOperationException
destroyClones in interface org.jboss.portal.portlet.PortletInvokerjava.lang.IllegalArgumentException
org.jboss.portal.portlet.PortletInvokerException
java.lang.UnsupportedOperationException
public org.jboss.portal.portlet.state.PropertyMap getProperties(org.jboss.portal.portlet.PortletContext portletContext,
java.util.Set keys)
throws java.lang.IllegalArgumentException,
org.jboss.portal.portlet.PortletInvokerException,
java.lang.UnsupportedOperationException
getProperties in interface org.jboss.portal.portlet.PortletInvokerjava.lang.IllegalArgumentException
org.jboss.portal.portlet.PortletInvokerException
java.lang.UnsupportedOperationException
public org.jboss.portal.portlet.state.PropertyMap getProperties(org.jboss.portal.portlet.PortletContext portletContext)
throws java.lang.IllegalArgumentException,
org.jboss.portal.portlet.PortletInvokerException,
java.lang.UnsupportedOperationException
getProperties in interface org.jboss.portal.portlet.PortletInvokerjava.lang.IllegalArgumentException
org.jboss.portal.portlet.PortletInvokerException
java.lang.UnsupportedOperationException
public org.jboss.portal.portlet.PortletContext setProperties(org.jboss.portal.portlet.PortletContext portletContext,
org.jboss.portal.portlet.state.PropertyChange[] changes)
throws java.lang.IllegalArgumentException,
org.jboss.portal.portlet.PortletInvokerException,
java.lang.UnsupportedOperationException
setProperties in interface org.jboss.portal.portlet.PortletInvokerjava.lang.IllegalArgumentException
org.jboss.portal.portlet.PortletInvokerException
java.lang.UnsupportedOperationExceptionpublic java.lang.String getProducerId()
WSRPConsumer
getProducerId in interface WSRPConsumerpublic SessionHandler getSessionHandler()
public java.util.Map<java.lang.String,java.util.Set<org.jboss.portal.portlet.Portlet>> getPortletGroupMap()
throws org.jboss.portal.portlet.PortletInvokerException
org.jboss.portal.portlet.PortletInvokerExceptionpublic java.util.Set getSupportedUserScopes()
public boolean supportsUserScope(java.lang.String userScope)
userScope - the user scope which support is to be determined
true if the given user scope is supported, false otherwisepublic ProducerSessionInformation getProducerSessionInformationFrom(org.jboss.portal.portlet.invocation.PortletInvocation invocation)
WSRPConsumer
getProducerSessionInformationFrom in interface WSRPConsumerinvocation - a portlet invocation from which the session information should be extracted.
ProducerSessionInformationpublic ProducerSessionInformation getProducerSessionInformationFrom(javax.servlet.http.HttpSession session)
WSRPConsumer
getProducerSessionInformationFrom in interface WSRPConsumersession - the session from the information should be extracted.
ProducerSessionInformation
public void activate()
throws java.lang.Exception
WSRPConsumer
activate in interface WSRPConsumerjava.lang.Exception
public void deactivate()
throws java.lang.Exception
WSRPConsumer
deactivate in interface WSRPConsumerjava.lang.Exceptionpublic boolean isActive()
isActive in interface WSRPConsumerpublic boolean isRefreshNeeded()
isRefreshNeeded in interface WSRPConsumer
public RefreshResult refresh(boolean forceRefresh)
throws org.jboss.portal.portlet.PortletInvokerException
refresh in interface WSRPConsumerorg.jboss.portal.portlet.PortletInvokerException
protected void startService()
throws java.lang.Exception
startService in class org.jboss.system.ServiceMBeanSupportjava.lang.Exception
protected void stopService()
throws java.lang.Exception
stopService in class org.jboss.system.ServiceMBeanSupportjava.lang.Exceptionpublic void setServiceFactory(ServiceFactory serviceFactory)
serviceFactory -
public WSRP_v1_ServiceDescription_PortType getServiceDescriptionService()
throws org.jboss.portal.portlet.PortletInvokerException
org.jboss.portal.portlet.PortletInvokerException
public WSRP_v1_Markup_PortType getMarkupService()
throws org.jboss.portal.portlet.PortletInvokerException
org.jboss.portal.portlet.PortletInvokerException
public WSRP_v1_PortletManagement_PortType getPortletManagementService()
throws org.jboss.portal.portlet.PortletInvokerException
org.jboss.portal.portlet.PortletInvokerException
public WSRP_v1_Registration_PortType getRegistrationService()
throws org.jboss.portal.portlet.PortletInvokerException
org.jboss.portal.portlet.PortletInvokerException
public void refreshProducerInfo()
throws org.jboss.portal.portlet.PortletInvokerException
refreshProducerInfo in interface WSRPConsumerorg.jboss.portal.portlet.PortletInvokerException
public void releaseSessions()
throws org.jboss.portal.portlet.PortletInvokerException
WSRPConsumer
releaseSessions in interface WSRPConsumerorg.jboss.portal.portlet.PortletInvokerException
public void onEvent(PortalEventContext eventContext,
PortalEvent event)
onEvent in interface PortalEventListenereventContext - event -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||