resp.sendRedirect(getServer().getRedirectURL());
resp.flushBuffer();
baseRequest.setHandled(true);
return;
}
QueryHandlerRegistry queryHandlerRegistry = bus.getExtension(QueryHandlerRegistry.class);
if (null != req.getQueryString() && queryHandlerRegistry != null) {
String requestURL = req.getRequestURL() + "?" + req.getQueryString();
String pathInfo = req.getPathInfo();
for (QueryHandler qh : queryHandlerRegistry.getHandlers()) {
if (qh.isRecognizedQuery(requestURL, pathInfo, endpointInfo)) {
//replace the endpointInfo address with request url only for get wsdl
updateEndpointAddress(req.getRequestURL().toString());
resp.setContentType(qh.getResponseContentType(requestURL, pathInfo));
qh.writeResponse(requestURL, pathInfo, endpointInfo, resp.getOutputStream());