Package org.jboss.wsf.spi.management

Examples of org.jboss.wsf.spi.management.ServerConfig


      if (uriScheme == null)
         uriScheme = "http";

      SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
      ServerConfig config = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();

      String host = config.getWebServiceHost();
      String port = "";
      if ("https".equals(uriScheme))
      {
         int portNo = config.getWebServiceSecurePort();
         if (portNo != 443)
         {
            port = ":" + portNo;
         }

      }
      else
      {
         int portNo = config.getWebServicePort();
         if (portNo != 80)
         {
            port = ":" + portNo;
         }
      }
View Full Code Here


               String servicePath = sepMetaData.getContextRoot() + sepMetaData.getURLPattern();
               String serviceEndpointURL = getServiceEndpointAddress(uriScheme, servicePath);

               SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
               ServerConfig config = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();
               boolean alwaysModify = config.isModifySOAPAddress();

               if (alwaysModify || uriScheme == null || orgAddress.indexOf("REPLACE_WITH_ACTUAL_URL") >= 0)
               {
                  log.debug("Replace service endpoint address '" + orgAddress + "' with '" + serviceEndpointURL + "'");
                  wsdlEndpoint.setAddress(serviceEndpointURL);
View Full Code Here

      try
      {
         // TODO: recursive dependency, ohoh

         SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
         ServerConfig config = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();       
         tmpdir = new File(config.getServerTempDir().getCanonicalPath() + "/jbossws");
         tmpdir.mkdirs();
      }
      catch (Throwable t)
      {
         // Use the Java temp directory if there is no server config (the client)
View Full Code Here

      try
      {
         // TODO: recursive dependency, ohoh

         SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
         ServerConfig config = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();       
         tmpdir = new File(config.getServerTempDir().getCanonicalPath() + "/jbossws");
         tmpdir.mkdirs();
      }
      catch (Throwable t)
      {
         // Use the Java temp directory if there is no server config (the client)
View Full Code Here

        if (configService != null) {

            final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
            final String name = address.getLastElement().getValue();

            ServerConfig config = (ServerConfig) configService.getValue();
            EndpointConfig endpointConfig = new EndpointConfig();
            endpointConfig.setConfigName(name);
            if (model.hasDefined(Constants.PRE_HANDLER_CHAINS)) {
                ModelNode preHandlers = model.get(Constants.PRE_HANDLER_CHAINS);
                endpointConfig.setPreHandlerChains(buildChainMD(preHandlers));
            }
            if (model.hasDefined(Constants.POST_HANDLER_CHAINS)) {
                ModelNode postHandlers = model.get(Constants.POST_HANDLER_CHAINS);
                endpointConfig.setPostHandlerChains(buildChainMD(postHandlers));
            }

            if (model.hasDefined(Constants.PROPERTY)) {
                for (String key : model.get(Constants.PROPERTY).keys()) {
                    endpointConfig.setProperty(key, model.get(Constants.PROPERTY).get(key).asString());
                }
            }
            if (model.hasDefined(Constants.FEATURE)) {
                for (String key : model.get(Constants.FEATURE).keys()) {
                    endpointConfig.setFeature(new Feature(key), true);
                }
            }
            config.addEndpointConfig(endpointConfig);
        }
    }
View Full Code Here

        if (configService != null) {

            final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
            final String name = address.getLastElement().getValue();

            ServerConfig config = (ServerConfig) configService.getValue();
            EndpointConfig target = null;
            for (EndpointConfig epConfig : config.getEndpointConfigs()) {
                if (epConfig.getConfigName().equals(name)) {
                    target = epConfig;
                }
            }
            if (target != null) {
                config.getEndpointConfigs().remove(target);
            }
        }
    }
View Full Code Here

{

   public void testAddress(final String archive, final String service, final String scheme, final String port)
   {
      SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
      ServerConfig serverConfig = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();File tmpDir = serverConfig.getServerTempDir();
     
      File dataDir = serverConfig.getServerDataDir();
      File wsdlDir = new File(dataDir.getAbsolutePath() + File.separator + "wsdl" + File.separator + archive);

      if (wsdlDir.exists() == false)
      {
         throw new JBWS1190Exception(wsdlDir.getAbsolutePath() + " does not exist.");
View Full Code Here

         log.debug("Importing resource file: " + impResourceFile.getCanonicalPath());

         String wsdlLocFilePath = wsdlLocFile.getParentFile().getCanonicalPath();
         SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
         ServerConfig serverConfig = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();
         String wsdlDataLoc = serverConfig.getServerDataDir().getCanonicalPath() + File.separatorChar + "wsdl";

         //allow wsdl file's parent or server's data/wsdl or overriden wsdl publish directories only
         String resourceAbsPath = impResourceFile.getCanonicalPath();
         if (resourceAbsPath.indexOf(wsdlLocFilePath) >= 0
             || resourceAbsPath.indexOf(wsdlDataLoc) >= 0
View Full Code Here

      File tmpWar = null;
      try
      {
         // TODO: recursive dependency, ohoh
         SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
         ServerConfig config = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();
         File tmpdir = new File(config.getServerTempDir().getCanonicalPath() + "/deploy");

         String deploymentName = dep.getCanonicalName().replace('/', '-');
         tmpWar = File.createTempFile(deploymentName, ".war", tmpdir);
         tmpWar.delete();
View Full Code Here

         log.debug("Importing resource file: " + impResourceFile.getCanonicalPath());

         String wsdlLocFilePath = wsdlLocFile.getParentFile().getCanonicalPath();
         SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
         ServerConfig serverConfig = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();
         String wsdlDataLoc = serverConfig.getServerDataDir().getCanonicalPath() + File.separatorChar + "wsdl";

         //allow wsdl file's parent or server's data/wsdl or overriden wsdl publish directories only
         String resourceAbsPath = impResourceFile.getCanonicalPath();
         if (resourceAbsPath.indexOf(wsdlLocFilePath) >= 0
             || resourceAbsPath.indexOf(wsdlDataLoc) >= 0
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.management.ServerConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.