retrieveConfiguration(WebDriverConfiguration.class);
}
// javadoc inherited from interface
public void stopProcess() throws SAXException {
XMLPipelineContext context = getPipelineContext();
if (!context.inErrorRecoveryMode()) {
MonitoringConfiguration monitoringConfiguration =
(MonitoringConfiguration) context.getPipelineConfiguration()
.retrieveConfiguration(MonitoringConfiguration.class);
MonitoredTransaction webdTransaction =
monitoringConfiguration.getTransaction("webd");
webdTransaction.start();
PluggableHTTPManager httpManager =
((WebDriverConfigurationImpl) configuration).
getPluggableHTTPManager(protocolString, pipelineConfiguration);
httpManager.initialize(configuration, timeout);
try {
context.pushBaseURI(getUrlString());
httpManager.sendRequest(createRequestDetails(), context);
webdTransaction.stop(MonitoredTransaction.SUCCESSFUL, getUrlString());
} catch (HTTPException e) {
webdTransaction.stop(MonitoredTransaction.FAILED, getUrlString());
fatalError(new XMLPipelineException(
exceptionLocalizer.format(
"http-request-process-failure",
urlString),
context.getCurrentLocator(),
e));
} catch (RuntimeHttpException e) {
webdTransaction.stop(MonitoredTransaction.FAILED, getUrlString());
fatalError(new XMLPipelineException(
exceptionLocalizer.format(
"http-request-process-failure",
urlString),
context.getCurrentLocator(),
e));
} catch (MalformedURLException e) {
webdTransaction.stop(MonitoredTransaction.FAILED, getUrlString());
fatalError(new XMLPipelineException(
"base uri attribute is malformed",
context.getCurrentLocator(),
e));
} finally {
context.popBaseURI();
}
}
}