Task.java revision 3fc1b5e9b2ff286cd528a06154cc998198de1e70
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: Task.java,v 1.10 2008/10/29 00:02:39 veiming Exp $
*
*/
/*
* Portions Copyrighted 2010-2014 ForgeRock AS
*/
/**
* Base class for all Tasks.
*/
public abstract class Task
implements ITask
{
/**
* Return a trimmed String that represents the value from the
* passed in params Map for the given key
* @param params The Map that holds a String value or a Set containing
* a String value for the given key
* @param key The key to use to look up the String value in params Map
* @return A trimmed String for the given key from the params Map.
*/
// Returns a trimmed String from the Set
} else {
}
}
}
return result;
}
}
return rb;
}
}
throws WorkflowException {
return resName;
}
) {
} else {
// XML content that is posted directly is escaped, un-escape before returning
}
}
throws WorkflowException {
try {
}
} catch (IOException e){
throw new WorkflowException(e.getMessage());
}
}
/**
* Reads the content in from a URL and returns as a String.
* @param url The URL to fetch content from.
* @param locale The locale used to construct error messages.
* @return A string of the contents fetched from the URL.
* @throws WorkflowException Thrown if the URL is malformed, or there is an error fetching content.
*/
throws WorkflowException {
try {
if (conn instanceof HttpURLConnection) {
httpConnection.setDoOutput(true);
new InputStreamReader(is));
}
}
} catch (ProtocolException e) {
} catch (MalformedURLException e) {
} catch (IOException e) {
}
}
while (st.hasMoreTokens()) {
if (s.length() > 0) {
}
}
}
return list;
}
throws WorkflowException {
try {
int counter = 1;
counter++;
}
return metaAlias;
} catch (SAML2MetaException e) {
throw new WorkflowException(e.getMessage());
}
}
throws WorkflowException {
try {
int counter = 1;
counter++;
}
return metaAlias;
} catch (SAML2MetaException e) {
throw new WorkflowException(e.getMessage());
}
}
if (isConsoleRemote) {
return SystemProperties.getServerInstanceName();
} else {
}
}
}