Package com.sun.identity.workflow
Class Task
- java.lang.Object
-
- com.sun.identity.workflow.Task
-
- All Implemented Interfaces:
ITask
- Direct Known Subclasses:
ConfigureGoogleApps
,ConfigureSalesForceApps
,ConfigureSocialAuthN
,CreateFedlet
,CreateHostedIDP
,CreateHostedSP
,CreateRemoteIDP
,CreateRemoteSP
,CreateSoapSTSDeployment
,GetCircleOfTrusts
,GetHostedIDPs
,GetIDPSPPairingInCOT
public abstract class Task extends Object implements ITask
Base class for all Tasks.
-
-
Constructor Summary
Constructors Constructor Description Task()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List
getAttributeMapping(Map params)
static String
getContent(String resName, Locale locale)
protected String
getFileContent(String filename)
protected static String
getMessage(String key, Locale locale)
protected String
getRequestURL(Map map)
protected static ResourceBundle
getResourceBundle(Locale locale)
protected String
getString(Map params, String key)
Return a trimmed String that represents the value from the passed in params Map for the given keyprotected static String
getWebContent(String url, Locale locale)
Reads the content in from a URL and returns as a String.
-
-
-
Method Detail
-
getString
protected String getString(Map params, String key)
Return a trimmed String that represents the value from the passed in params Map for the given key- Parameters:
params
- The Map that holds a String value or a Set containing a String value for the given keykey
- The key to use to look up the String value in params Map- Returns:
- A trimmed String for the given key from the params Map.
-
getResourceBundle
protected static ResourceBundle getResourceBundle(Locale locale)
-
getContent
public static String getContent(String resName, Locale locale) throws WorkflowException
- Throws:
WorkflowException
-
getFileContent
protected String getFileContent(String filename) throws WorkflowException
- Throws:
WorkflowException
-
getWebContent
protected static String getWebContent(String url, Locale locale) throws WorkflowException
Reads the content in from a URL and returns as a String.- Parameters:
url
- The URL to fetch content from.locale
- The locale used to construct error messages.- Returns:
- A string of the contents fetched from the URL.
- Throws:
WorkflowException
- Thrown if the URL is malformed, or there is an error fetching content.
-
-