// Javadoc inherited.
protected XMLProcess createProcess(
DynamicProcess dynamicProcess, ExpandedName elementName,
Attributes attributes) throws SAXException {
HTTPRequestOperationProcess operation =
new HTTPRequestOperationProcess();
operation.setRequestType(requestType);
// The fully specified URL of the web server including protocol
// and ports e.g. http://www.volantis.com:8080/index.html.
// This value is required.
String url = attributes.getValue("url");
if (url != null) {
operation.setUrlString(url);
String value;
// The version of the HTTP protocol to use when making the request.
// If not specified then HTTP 1.1 is assumed.
if ((value = attributes.getValue("version")) != null) {
operation.setHTTPVersion(HTTPVersion.httpVersion(value));
}
// This attribute is used to identify the particular instance of
// the connector and can be used in conjunction with Mariner xPath
// expressions to obtain the headers, parameters and cookies
// returned in the response to the request.
if ((value = attributes.getValue("id")) != null) {
operation.setId(value);
}
// This flag is used to determine whether the operation process
// silently follows HTTP 302 response codes.
if ((value = attributes.getValue("followRedirects")) != null) {
operation.setFollowRedirects(value);
}
// This flag is used to determine whether the operation process
// sends http error content throught the pipeline or ignores it.
if ((value = attributes.getValue("ignoreErroredContent")) != null) {
operation.setIgnoreErroredContent(value);
}
// Set the timeout on the operation.
Period period = determineTimeout(dynamicProcess, attributes);
operation.setTimeout(period);
} else {
forwardError(dynamicProcess, "URL is required. Value is: " + url);
}