IBM WebSphere Extended Deployment (XD)TM
Release 6.0

com.ibm.wsspi.classify
PolicyProtocolProvider



It provides operations for finding out the actions including the default action that a policy provider supports.


Method Summary
public  StringgetActions(com.ibm.ws.sm.workspace.WorkSpace)
           Gets an array of actions supported by the policy provider.
public  StringgetActions(java.lang.String, com.ibm.ws.sm.workspace.WorkSpace)
           Gets an array of actions supported by the policy provider. This interface is not applicable.
public  StringgetDefaultAction()
           Gets the default action supported by the policy provider.
public  StringgetTranslatedAction(java.lang.String, java.util.Locale)
           Gets a translated string in the language specified by the Locale object.

Method Detail

getActions

public String getActions(WorkSpace wksp)
Gets an array of actions supported by the policy provider.
Parameters:
    wksp - A workspace object of type com.ibm.ws.sm.workspace.WorkSpace . For routing policy provider, this is null.


Returns:
     String[] Array of actions.


getActions

public String getActions(String scName,WorkSpace wksp)
Gets an array of actions supported by the policy provider. This interface is not applicable to the routing policy provider.
Parameters:
    scName - The name of the service class.
    wksp - A workspace object of type com.ibm.ws.sm.workspace.WorkSpace . For routing policy provider, this is null.


Returns:
     String[] Array of actions.


Throws:
    com.ibm.ws.xd.config.operationalpolicy.ServiceClassNotFoundException


getDefaultAction

public String getDefaultAction()
Gets the default action supported by the policy provider.


Returns:
     String representing the default action, null if default action has not been defined.


getTranslatedAction

public String getTranslatedAction(String action,Locale locale)
Gets a translated string in the language specified by the Locale object.
Parameters:
    action - The action in its native form.
    locale - The constructed locale object with the lowercase two-letter ISO-639 language and uppercase two-letter ISO-3166 country codes set.


Returns:
     String in the locale representing action.


IBM WebSphere Extended Deployment (XD)TM
Release 6.0