|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.wsrp.producer.ServiceHandler org.jboss.portal.wsrp.producer.MarkupHandler
Nested Class Summary | |
(package private) class |
MarkupHandler.MarkupRequest
Wrapper around information needed to perform a Markup invocation. |
Field Summary | |
private static java.lang.String |
CHARSET_SEPARATOR
|
private static java.lang.String |
EMPTY
|
private static java.lang.String |
GET_MARKUP
|
private org.jboss.logging.Logger |
log
|
private static java.lang.String |
PBI
|
private static java.lang.String |
PORTLET_MODE
|
protected WSRPProducerImpl |
producer
|
private static java.lang.String |
WINDOW_STATE
|
Constructor Summary | |
(package private) |
MarkupHandler(WSRPProducerImpl producer)
|
Method Summary | |
private void |
checkForError(PortletInvocationResponse response)
|
private void |
checkUserContext(org.jboss.portal.wsrp.core.UserContext wsrpUserContext)
|
private InstanceContext |
createInstanceContext(java.lang.String portletHandle,
AccessMode accessMode)
|
private MarkupHandler.MarkupRequest |
createMarkupRequestFrom(MarkupType[] markupTypes,
MarkupParams params,
Portlet portlet)
Returns the most appropriate information to base markup generation on based on a Portlet's specified markup types and a markup request parameters. |
private StateString |
createNavigationalState(java.lang.String navigationalState)
|
private PortalContext |
createPortalContext(MarkupParams params,
MarkupHandler.MarkupRequest markupRequest)
|
private SecurityContext |
createSecurityContext(MarkupParams params,
RuntimeContext runtimeContext,
org.jboss.portal.wsrp.core.UserContext wsrpUserContext)
|
private HTTPStreamInfo |
createStreamInfo(MarkupHandler.MarkupRequest markupRequest)
|
private UserContext |
createUserContext(org.jboss.portal.wsrp.core.UserContext userContext,
java.lang.String preferredLocale,
java.lang.String[] supportedLocales)
|
private WindowContext |
createWindowContext(java.lang.String portletHandle,
RuntimeContext runtimeContext)
|
MarkupResponse |
getMarkup(GetMarkup getMarkup)
|
private java.lang.String |
getMatchingOrDefaultFrom(java.lang.String[] possibleValues,
java.lang.String[] preferredValues,
java.lang.String defaultValue)
Retrieves the best matching value from a set of possible values based on an ordered set of preferred values or the given default value if no matching value is found. |
private java.lang.String |
getMatchingOrDefaultFrom(java.lang.String[] possibleValues,
java.lang.String desired,
java.lang.String defaultValue)
Retrieves the matching value from a set of possible values based on a desired value or the given default one if no match can be found. |
private java.lang.String |
getMatchingOrFailFrom(java.lang.String[] possibleValues,
java.lang.String desired,
java.lang.String valueType)
Retrieves the desired value from the set of possible values if such value exists or throw an IllegalArgumentException . |
private java.lang.String |
getNewStateOrNull(RenderResponse renderResult,
boolean forMode)
|
ReturnAny |
initCookie(InitCookie initCookie)
|
BlockingInteractionResponse |
performBlockingInteraction(PerformBlockingInteraction performBlockingInteraction)
|
private void |
releaseSession(java.lang.String registrationHandle,
java.lang.String sessionID)
Releases the resources associated to the specified session for the specified consumer. |
ReturnAny |
releaseSessions(ReleaseSessions releaseSessions)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String WINDOW_STATE
private static final java.lang.String PORTLET_MODE
private static final java.lang.String PBI
private static final java.lang.String GET_MARKUP
private org.jboss.logging.Logger log
private static final java.lang.String EMPTY
private static final java.lang.String CHARSET_SEPARATOR
protected WSRPProducerImpl producer
Constructor Detail |
MarkupHandler(WSRPProducerImpl producer)
Method Detail |
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
private java.lang.String getNewStateOrNull(RenderResponse renderResult, boolean forMode)
private void checkForError(PortletInvocationResponse response) throws UnsupportedModeFault, OperationFailedFault, UnsupportedWindowStateFault
UnsupportedModeFault
OperationFailedFault
UnsupportedWindowStateFault
public ReturnAny releaseSessions(ReleaseSessions releaseSessions) throws InvalidRegistrationFault, OperationFailedFault, MissingParametersFault, AccessDeniedFault, java.rmi.RemoteException
InvalidRegistrationFault
OperationFailedFault
MissingParametersFault
AccessDeniedFault
java.rmi.RemoteException
private void releaseSession(java.lang.String registrationHandle, java.lang.String sessionID) throws java.lang.IllegalStateException
registrationHandle
- the registration handle identifying the consumersessionID
- the id of the session which resources are to be released
java.lang.IllegalStateException
- if the specified session had already been releasedpublic ReturnAny initCookie(InitCookie initCookie) throws AccessDeniedFault, OperationFailedFault, InvalidRegistrationFault, java.rmi.RemoteException
AccessDeniedFault
OperationFailedFault
InvalidRegistrationFault
java.rmi.RemoteException
private void checkUserContext(org.jboss.portal.wsrp.core.UserContext wsrpUserContext) throws MissingParametersFault
MissingParametersFault
private StateString createNavigationalState(java.lang.String navigationalState)
private InstanceContext createInstanceContext(java.lang.String portletHandle, AccessMode accessMode)
private WindowContext createWindowContext(java.lang.String portletHandle, RuntimeContext runtimeContext)
private UserContext createUserContext(org.jboss.portal.wsrp.core.UserContext userContext, java.lang.String preferredLocale, java.lang.String[] supportedLocales)
private PortalContext createPortalContext(MarkupParams params, MarkupHandler.MarkupRequest markupRequest)
private HTTPStreamInfo createStreamInfo(MarkupHandler.MarkupRequest markupRequest) throws UnsupportedMimeTypeFault
UnsupportedMimeTypeFault
private SecurityContext createSecurityContext(MarkupParams params, RuntimeContext runtimeContext, org.jboss.portal.wsrp.core.UserContext wsrpUserContext)
private MarkupHandler.MarkupRequest createMarkupRequestFrom(MarkupType[] markupTypes, MarkupParams params, Portlet portlet) throws UnsupportedMimeTypeFault, UnsupportedModeFault, UnsupportedWindowStateFault
markupTypes
- the Portlet's specified markup typesparams
- the markup request parametersportlet
-
UnsupportedMimeTypeFault
UnsupportedModeFault
UnsupportedWindowStateFault
private java.lang.String getMatchingOrFailFrom(java.lang.String[] possibleValues, java.lang.String desired, java.lang.String valueType) throws java.lang.IllegalArgumentException
IllegalArgumentException
.
possibleValues
- the set of supported valuesdesired
- the desired valuevalueType
- a name identifying the type of the desired value (for error reporting purpose)
java.lang.IllegalArgumentException
- if the desired value is not found in the set of possible valuesprivate java.lang.String getMatchingOrDefaultFrom(java.lang.String[] possibleValues, java.lang.String[] preferredValues, java.lang.String defaultValue)
possibleValues
- the set of possible valuespreferredValues
- the ordered (according to user preferences) set of preferred valuesdefaultValue
- the default value to be used if no match can be found
private java.lang.String getMatchingOrDefaultFrom(java.lang.String[] possibleValues, java.lang.String desired, java.lang.String defaultValue)
possibleValues
- the set of possible valuesdesired
- the desired valuedefaultValue
- the default value if no match can be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |