|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.portal.common.system.AbstractJBossService org.jboss.portal.wsrp.producer.WSRPProducerImpl
Field Summary |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.portal.wsrp.WSRPProducer |
DEFAULT_SESSION_EXPIRATION_TIME, INFINITE_SESSION_EXPIRATION_TIME, SESSION_ATTRIBUTE, SESSION_ID_ATTRIBUTE |
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 | |
WSRPProducerImpl()
|
Method Summary | |
void |
addRegistrationProperty(PropertyDescription propertyDescription)
Adds a registration property to the set of required information for Consumers to provide when registering with this Producer |
void |
addSession(javax.servlet.http.HttpSession session)
|
protected void |
checkRegistration(RegistrationContext registrationContext)
|
void |
clearRegistrationProperties()
Remove all existing registration properties. |
PortletContext |
clonePortlet(ClonePortlet clonePortlet)
|
ReturnAny |
deregister(RegistrationContext deregister)
|
DestroyPortletsResponse |
destroyPortlets(DestroyPortlets destroyPortlets)
|
PortletInvoker |
getInvoker()
|
MarkupResponse |
getMarkup(GetMarkup getMarkup)
|
PortletDescriptionResponse |
getPortletDescription(GetPortletDescription getPortletDescription)
|
PortletDescription |
getPortletDescription(java.lang.String handle,
java.lang.String[] locales)
|
PropertyList |
getPortletProperties(GetPortletProperties getPortletProperties)
|
PortletPropertyDescriptionResponse |
getPortletPropertyDescription(GetPortletPropertyDescription getPortletPropertyDescription)
|
protected ServiceDescription |
getRegistrationNotProvidedServiceDescription()
Retrieves the service description offered to unregistered consumers when registration is required. |
CookieProtocol |
getRequiresInitCookie()
Indicates whether or not the Producer requires the Consumer to assist with cookie support of the HTTP protocol. |
ServiceDescription |
getServiceDescription(GetServiceDescription gs)
|
int |
getSessionExpirationTime()
Maximum number of seconds between invocations referencing a session ID before this Producer will schedule releasing the related resources. |
ReturnAny |
initCookie(InitCookie initCookie)
|
java.lang.Object |
invoke(org.jboss.invocation.Invocation invocation)
Dispatch the invocation to the target by reflection |
protected boolean |
isRegistrationValid(RegistrationContext registrationContext)
Checks that the specified registration information is valid if this Producer requires registration. |
java.lang.Boolean |
isRemotableByDefault()
|
boolean |
isRequiresRegistration()
Determines whether registration is required to access this Producer's information and services. |
boolean |
isSessionValid(java.lang.String sessionId)
Checks that the session identified with the specified id is valid. |
RegistrationState |
modifyRegistration(ModifyRegistration modifyRegistration)
|
BlockingInteractionResponse |
performBlockingInteraction(PerformBlockingInteraction performBlockingInteraction)
|
RegistrationContext |
register(RegistrationData register)
|
void |
releaseSession(java.lang.String sessionID)
|
ReturnAny |
releaseSessions(ReleaseSessions releaseSessions)
|
void |
setInvoker(PortletInvoker invoker)
|
PortletContext |
setPortletProperties(SetPortletProperties setPortletProperties)
|
void |
setRemotableByDefault(java.lang.Boolean remotableByDefault)
|
void |
setRequiresInitCookie(CookieProtocol requiresInitCookie)
Sets the level of cookie support required by the Consumer. |
void |
setRequiresRegistration(boolean requiresRegistration)
Specifies whether this Producer requires clients to be registered or not. |
void |
setSessionExpirationTime(int sessionExpirationTime)
Sets the expiration time (in seconds) of session associated resources. |
Methods inherited from class org.jboss.portal.common.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, startService, stopService |
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 |
Constructor Detail |
public WSRPProducerImpl()
Method Detail |
public ServiceDescription getServiceDescription(GetServiceDescription gs) throws InvalidRegistrationFault, OperationFailedFault, java.rmi.RemoteException
InvalidRegistrationFault
OperationFailedFault
java.rmi.RemoteException
public MarkupResponse getMarkup(GetMarkup getMarkup) throws UnsupportedWindowStateFault, InvalidCookieFault, InvalidSessionFault, AccessDeniedFault, InconsistentParametersFault, InvalidHandleFault, UnsupportedLocaleFault, UnsupportedModeFault, OperationFailedFault, MissingParametersFault, InvalidUserCategoryFault, InvalidRegistrationFault, UnsupportedMimeTypeFault, java.rmi.RemoteException
UnsupportedWindowStateFault
InvalidCookieFault
InvalidSessionFault
AccessDeniedFault
InconsistentParametersFault
InvalidHandleFault
UnsupportedLocaleFault
UnsupportedModeFault
OperationFailedFault
MissingParametersFault
InvalidUserCategoryFault
InvalidRegistrationFault
UnsupportedMimeTypeFault
java.rmi.RemoteException
public BlockingInteractionResponse performBlockingInteraction(PerformBlockingInteraction performBlockingInteraction) throws InvalidSessionFault, UnsupportedModeFault, UnsupportedMimeTypeFault, OperationFailedFault, UnsupportedWindowStateFault, UnsupportedLocaleFault, AccessDeniedFault, PortletStateChangeRequiredFault, InvalidRegistrationFault, MissingParametersFault, InvalidUserCategoryFault, InconsistentParametersFault, InvalidHandleFault, InvalidCookieFault, java.rmi.RemoteException
InvalidSessionFault
UnsupportedModeFault
UnsupportedMimeTypeFault
OperationFailedFault
UnsupportedWindowStateFault
UnsupportedLocaleFault
AccessDeniedFault
PortletStateChangeRequiredFault
InvalidRegistrationFault
MissingParametersFault
InvalidUserCategoryFault
InconsistentParametersFault
InvalidHandleFault
InvalidCookieFault
java.rmi.RemoteException
public ReturnAny releaseSessions(ReleaseSessions releaseSessions) throws InvalidRegistrationFault, OperationFailedFault, MissingParametersFault, AccessDeniedFault, java.rmi.RemoteException
InvalidRegistrationFault
OperationFailedFault
MissingParametersFault
AccessDeniedFault
java.rmi.RemoteException
public ReturnAny initCookie(InitCookie initCookie) throws AccessDeniedFault, OperationFailedFault, InvalidRegistrationFault, java.rmi.RemoteException
AccessDeniedFault
OperationFailedFault
InvalidRegistrationFault
java.rmi.RemoteException
public RegistrationContext register(RegistrationData register) throws MissingParametersFault, OperationFailedFault, java.rmi.RemoteException
MissingParametersFault
OperationFailedFault
java.rmi.RemoteException
public ReturnAny deregister(RegistrationContext deregister) throws OperationFailedFault, InvalidRegistrationFault, java.rmi.RemoteException
OperationFailedFault
InvalidRegistrationFault
java.rmi.RemoteException
public RegistrationState modifyRegistration(ModifyRegistration modifyRegistration) throws MissingParametersFault, OperationFailedFault, InvalidRegistrationFault, java.rmi.RemoteException
MissingParametersFault
OperationFailedFault
InvalidRegistrationFault
java.rmi.RemoteException
public PortletDescriptionResponse getPortletDescription(GetPortletDescription getPortletDescription) throws AccessDeniedFault, InvalidHandleFault, InvalidUserCategoryFault, InconsistentParametersFault, MissingParametersFault, InvalidRegistrationFault, OperationFailedFault, java.rmi.RemoteException
AccessDeniedFault
InvalidHandleFault
InvalidUserCategoryFault
InconsistentParametersFault
MissingParametersFault
InvalidRegistrationFault
OperationFailedFault
java.rmi.RemoteException
public PortletContext clonePortlet(ClonePortlet clonePortlet) throws InvalidUserCategoryFault, AccessDeniedFault, OperationFailedFault, InvalidHandleFault, InvalidRegistrationFault, InconsistentParametersFault, MissingParametersFault, java.rmi.RemoteException
InvalidUserCategoryFault
AccessDeniedFault
OperationFailedFault
InvalidHandleFault
InvalidRegistrationFault
InconsistentParametersFault
MissingParametersFault
java.rmi.RemoteException
public DestroyPortletsResponse destroyPortlets(DestroyPortlets destroyPortlets) throws InconsistentParametersFault, MissingParametersFault, InvalidRegistrationFault, OperationFailedFault, java.rmi.RemoteException
InconsistentParametersFault
MissingParametersFault
InvalidRegistrationFault
OperationFailedFault
java.rmi.RemoteException
public PortletContext setPortletProperties(SetPortletProperties setPortletProperties) throws OperationFailedFault, InvalidHandleFault, MissingParametersFault, InconsistentParametersFault, InvalidUserCategoryFault, AccessDeniedFault, InvalidRegistrationFault, java.rmi.RemoteException
OperationFailedFault
InvalidHandleFault
MissingParametersFault
InconsistentParametersFault
InvalidUserCategoryFault
AccessDeniedFault
InvalidRegistrationFault
java.rmi.RemoteException
public PropertyList getPortletProperties(GetPortletProperties getPortletProperties) throws InvalidHandleFault, MissingParametersFault, InvalidRegistrationFault, AccessDeniedFault, OperationFailedFault, InconsistentParametersFault, InvalidUserCategoryFault, java.rmi.RemoteException
InvalidHandleFault
MissingParametersFault
InvalidRegistrationFault
AccessDeniedFault
OperationFailedFault
InconsistentParametersFault
InvalidUserCategoryFault
java.rmi.RemoteException
public PortletPropertyDescriptionResponse getPortletPropertyDescription(GetPortletPropertyDescription getPortletPropertyDescription) throws MissingParametersFault, InconsistentParametersFault, InvalidUserCategoryFault, InvalidRegistrationFault, AccessDeniedFault, InvalidHandleFault, OperationFailedFault, java.rmi.RemoteException
MissingParametersFault
InconsistentParametersFault
InvalidUserCategoryFault
InvalidRegistrationFault
AccessDeniedFault
InvalidHandleFault
OperationFailedFault
java.rmi.RemoteException
public void setRequiresRegistration(boolean requiresRegistration)
WSRPProducer
setRequiresRegistration
in interface WSRPProducer
requiresRegistration
- true
if registration is required, false
otherwise.public boolean isRequiresRegistration()
WSRPProducer
isRequiresRegistration
in interface WSRPProducer
true
if registration is required, false
otherwise.public CookieProtocol getRequiresInitCookie()
WSRPProducer
org.jboss.portal.wsrp.core.CookieProtocol#none
: The Producer does
not need the Consumer to ever invoke org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType#initCookie(org.jboss.portal.wsrp.core.InitCookie)
.org.jboss.portal.wsrp.core.CookieProtocol#perUser
: The Consumer MUST invoke org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType#initCookie(org.jboss.portal.wsrp.core.InitCookie)
once per
user of the Consumer, and associate any returned cookies with subsequent invocations on behalf of that user.org.jboss.portal.wsrp.core.CookieProtocol#perGroup
: The Consumer MUST invoke org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType#initCookie(org.jboss.portal.wsrp.core.InitCookie)
once per
unique groupID from the PortletDescriptions for the Portlets it is aggregating on a page for each user of the
Consumer, and associate any returned cookies with subsequent invocations on behalf of that user targeting Portlets
with identical groupIDs.
getRequiresInitCookie
in interface WSRPProducer
public void setRequiresInitCookie(CookieProtocol requiresInitCookie)
WSRPProducer
setRequiresInitCookie
in interface WSRPProducer
requiresInitCookie
- either org.jboss.portal.wsrp.core.CookieProtocol#none
, org.jboss.portal.wsrp.core.CookieProtocol#perUser
or org.jboss.portal.wsrp.core.CookieProtocol#perGroup
public int getSessionExpirationTime()
WSRPProducer
INFINITE_SESSION_EXPIRATION_TIME
indicates that the sessionID will never
expire.
getSessionExpirationTime
in interface WSRPProducer
public void setSessionExpirationTime(int sessionExpirationTime)
WSRPProducer
setSessionExpirationTime
in interface WSRPProducer
sessionExpirationTime
- the maximum number of seconds between invocations referencing a session ID before
this Producer will schedule releasing the related resources. If INFINITE_SESSION_EXPIRATION_TIME
is passed, then the session will never expire.public boolean isSessionValid(java.lang.String sessionId)
WSRPProducer
isSessionValid
in interface WSRPProducer
sessionId
-
true
if the session associated with the given id is valid, false
otherwise.public void addSession(javax.servlet.http.HttpSession session)
public void releaseSession(java.lang.String sessionID) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public PortletInvoker getInvoker()
public void setInvoker(PortletInvoker invoker)
public PortletDescription getPortletDescription(java.lang.String handle, java.lang.String[] locales) throws InvalidHandleFault, OperationFailedFault
InvalidHandleFault
OperationFailedFault
public void addRegistrationProperty(PropertyDescription propertyDescription)
WSRPProducer
addRegistrationProperty
in interface WSRPProducer
propertyDescription
- public void clearRegistrationProperties()
WSRPProducer
clearRegistrationProperties
in interface WSRPProducer
public java.lang.Object invoke(org.jboss.invocation.Invocation invocation) throws java.lang.Exception
java.lang.Exception
protected boolean isRegistrationValid(RegistrationContext registrationContext) throws InvalidRegistrationFault
registrationContext
-
true
if the registration (when registration is required) information is valid or if no
registration is required, false
otherwise (registration required, invalid information).
InvalidRegistrationFault
protected void checkRegistration(RegistrationContext registrationContext) throws InvalidRegistrationFault
InvalidRegistrationFault
protected ServiceDescription getRegistrationNotProvidedServiceDescription()
public java.lang.Boolean isRemotableByDefault()
public void setRemotableByDefault(java.lang.Boolean remotableByDefault)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |