public String getEndpointAddressPath(){ return getEndpointAddressPath(null); }
public String getEndpointAddressPath(){ return getEndpointAddressPath(null); }
public URL composeEndpointAddress(URL root, String contextRoot) throws MalformedURLException { String uri = getEndpointAddressPath(contextRoot); return new URL(root.getProtocol(), root.getHost(), root.getPort(), uri); }
public URL composeEndpointAddress(URL root, String contextRoot) throws MalformedURLException { String uri = getEndpointAddressPath(contextRoot); return new URL(root.getProtocol(), root.getHost(), root.getPort(), uri); }
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException { startedEvent(endpoint.getEndpointAddressPath()); if (("Tester".equalsIgnoreCase(request.getQueryString())) && (!(HTTPBinding.HTTP_BINDING.equals(endpoint.getProtocolBinding())))) { Endpoint endpt = wsEngine_.getEndpoint(request.getServletPath()); if (endpt != null && Boolean.parseBoolean(endpt.getDescriptor().getDebugging())) { WebServiceTesterServlet.invoke(request, response, endpt.getDescriptor()); endedEvent(endpoint.getEndpointAddressPath()); return; } } // lookup registered URLs and get the appropriate adapter; // pass control to the adapter try { ServletAdapter targetEndpoint = (ServletAdapter) getEndpointFor(request); if (targetEndpoint != null) { targetEndpoint.handle(getServletContext(), request, response); } else { throw new ServletException("Service not found"); } } catch (Throwable t) { ServletException se = new ServletException(); se.initCause(t); throw se; } endedEvent(endpoint.getEndpointAddressPath()); }
public synchronized void deploy(@ProbeParam("endpoint")WebServiceEndpoint endpoint) { // add to [appName+moduleName+endpointName --> deployed data] com.sun.enterprise.deployment.Application app = endpoint.getBundleDescriptor().getApplication(); String appName = app.getAppName(); String moduleName = endpoint.getBundleDescriptor().getModuleName(); String endpointName = endpoint.getEndpointName(); // path (context path+url-pattern) --> deployed data //String id = new Endpoint(appName, moduleName, endpointName).toString(); String path = endpoint.getEndpointAddressPath(); DeployedEndpointData data = new DeployedEndpointData(path, app, endpoint); Application application = applications.get(appName); if (application == null) { application = new Application(appName); applications.put(appName, application); } application.addEndpoint(moduleName, endpointName, data); }