站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

WSRPUtils - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.wsrp
Class WSRPUtils

java.lang.Object
  extended byorg.jboss.portal.wsrp.WSRPUtils

public class WSRPUtils
extends java.lang.Object

Since:
2.4

Constructor Summary
WSRPUtils()
           
 
Method Summary
static java.lang.String convertJSR168PortletModeNameToWSRPName(java.lang.String jsr168PortletModeName)
           
static java.lang.String convertJSR168WindowStateNameToWSRPName(java.lang.String jsr168WindowStateName)
           
static java.lang.String[] convertLocalesToRFC3066LanguageTagArray(java.util.List localesOrderedByPreference)
           
static java.lang.String convertRequestAuthTypeToWSRPAuthType(java.lang.String authType)
           
static Fault createFaultFrom(java.lang.Class faultClass, java.lang.Throwable cause)
           
static OperationFailedFault createOperationFailedFault(java.lang.Throwable cause)
          Create a new OperationFailedFault based on the specified cause.
static AccessMode getAccessModeFromStateChange(StateChange stateChange)
           
static Mode getJSR168PortletModeFromWSRPName(java.lang.String wsrpPortletModeName)
           
static WindowState getJSR168WindowStateFromWSRPName(java.lang.String wsrpWindowStateName)
           
static StateChange getStateChangeFromAccessMode(AccessMode accessMode)
           
static java.lang.String getWSRPNameFromJSR168PortletMode(Mode portletMode)
           
static java.lang.String getWSRPNameFromJSR168WindowState(WindowState windowState)
           
static java.lang.String getWSRPURLTypeFrom(PortletURL url)
           
static void throwMissingParametersFaultIfValueIsMissing(java.lang.Object valueToCheck, java.lang.String valueName, java.lang.String context)
           
static void throwOperationFailedFaultIfValueIsMissing(java.lang.Object valueToCheck, java.lang.String valueName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSRPUtils

public WSRPUtils()
Method Detail

getJSR168WindowStateFromWSRPName

public static WindowState getJSR168WindowStateFromWSRPName(java.lang.String wsrpWindowStateName)

convertJSR168WindowStateNameToWSRPName

public static java.lang.String convertJSR168WindowStateNameToWSRPName(java.lang.String jsr168WindowStateName)

getWSRPNameFromJSR168WindowState

public static java.lang.String getWSRPNameFromJSR168WindowState(WindowState windowState)

getJSR168PortletModeFromWSRPName

public static Mode getJSR168PortletModeFromWSRPName(java.lang.String wsrpPortletModeName)

convertJSR168PortletModeNameToWSRPName

public static java.lang.String convertJSR168PortletModeNameToWSRPName(java.lang.String jsr168PortletModeName)

getWSRPNameFromJSR168PortletMode

public static java.lang.String getWSRPNameFromJSR168PortletMode(Mode portletMode)

getAccessModeFromStateChange

public static AccessMode getAccessModeFromStateChange(StateChange stateChange)

getStateChangeFromAccessMode

public static StateChange getStateChangeFromAccessMode(AccessMode accessMode)

getWSRPURLTypeFrom

public static java.lang.String getWSRPURLTypeFrom(PortletURL url)

convertRequestAuthTypeToWSRPAuthType

public static java.lang.String convertRequestAuthTypeToWSRPAuthType(java.lang.String authType)

convertLocalesToRFC3066LanguageTagArray

public static java.lang.String[] convertLocalesToRFC3066LanguageTagArray(java.util.List localesOrderedByPreference)

createOperationFailedFault

public static OperationFailedFault createOperationFailedFault(java.lang.Throwable cause)
Create a new OperationFailedFault based on the specified cause.

Parameters:
cause - the cause why the operation failed
Returns:
a new OperationFailedFault based on the specified cause.

createFaultFrom

public static Fault createFaultFrom(java.lang.Class faultClass,
                                    java.lang.Throwable cause)

throwMissingParametersFaultIfValueIsMissing

public static void throwMissingParametersFaultIfValueIsMissing(java.lang.Object valueToCheck,
                                                               java.lang.String valueName,
                                                               java.lang.String context)
                                                        throws MissingParametersFault
Throws:
MissingParametersFault

throwOperationFailedFaultIfValueIsMissing

public static void throwOperationFailedFaultIfValueIsMissing(java.lang.Object valueToCheck,
                                                             java.lang.String valueName)
                                                      throws OperationFailedFault
Throws:
OperationFailedFault