protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException {
WebServiceEngineImpl wsEngine_ = WebServiceEngineImpl.getInstance();
if ("Tester".equalsIgnoreCase(request.getQueryString())) {
Endpoint endpt = wsEngine_.getEndpoint(request.getServletPath());
if (endpt!=null && Boolean.parseBoolean(endpt.getDescriptor().getDebugging())) {
WebServiceTesterServlet.invoke(request, response,
endpt.getDescriptor());
return;
}
}
if (delegate_ != null) {
// check if we need to trace this...
String messageId=null;
if (wsEngine_.getGlobalMessageListener()!=null) {
Endpoint endpt = wsEngine_.getEndpoint(request.getServletPath());
messageId = wsEngine_.preProcessRequest(endpt);
if (messageId!=null) {
ThreadLocalInfo config = new ThreadLocalInfo(messageId, request);
wsEngine_.getThreadLocal().set(config);
}
}
delegate_.doPost(request, response);
if (messageId!=null) {
HttpResponseInfoImpl info = new HttpResponseInfoImpl(response);
wsEngine_.postProcessResponse(messageId, info);
}
}
}