@Override public ServerConfig run() { return getServerIntegrationServerConfig(); } };
private static ServerConfig getServerConfig() { if(System.getSecurityManager() == null) { return AbstractServerConfig.getServerIntegrationServerConfig(); } return AccessController.doPrivileged(AbstractServerConfig.GET_SERVER_INTEGRATION_SERVER_CONFIG); }
private static ServerConfig getServerConfig() { if(System.getSecurityManager() == null) { return AbstractServerConfig.getServerIntegrationServerConfig(); } return AccessController.doPrivileged(AbstractServerConfig.GET_SERVER_INTEGRATION_SERVER_CONFIG); }
protected ServerConfig getServerConfig() { if(System.getSecurityManager() == null) { return AbstractServerConfig.getServerIntegrationServerConfig(); } return AccessController.doPrivileged(AbstractServerConfig.GET_SERVER_INTEGRATION_SERVER_CONFIG); } }
private static ServerConfig getServerConfig() { if(System.getSecurityManager() == null) { return AbstractServerConfig.getServerIntegrationServerConfig(); } return AccessController.doPrivileged(AbstractServerConfig.GET_SERVER_INTEGRATION_SERVER_CONFIG); }
private static ServerConfig getServerConfig() { if (System.getSecurityManager() == null) { return AbstractServerConfig.getServerIntegrationServerConfig(); } return AccessController.doPrivileged(AbstractServerConfig.GET_SERVER_INTEGRATION_SERVER_CONFIG); }
private void handleWSDLRequest(Endpoint endpoint, OutputStream outputStream, String resPath, URL reqURL) throws MalformedURLException, IOException { ServerEndpointMetaData epMetaData = endpoint.getAttachment(ServerEndpointMetaData.class); if (epMetaData == null) throw MESSAGES.cannotObtainEndpointMetaData(endpoint.getName()); //The WSDLFilePublisher should set the location to an URL URL wsdlLocation = epMetaData.getServiceMetaData().getWsdlLocation(); String wsdlPublishLoc = epMetaData.getServiceMetaData().getWsdlPublishLocation(); WSDLRequestHandler wsdlRequestHandler = new WSDLRequestHandler(wsdlLocation, wsdlPublishLoc, AbstractServerConfig.getServerIntegrationServerConfig()); Document document = wsdlRequestHandler.getDocumentForPath(reqURL, resPath); OutputStreamWriter writer = new OutputStreamWriter(outputStream); new DOMWriter(writer, Constants.DEFAULT_XML_CHARSET).setPrettyprint(true).print(document); }