Package org.jboss.wsf.spi.management

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


        }
    }

    @Override
    protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
        final ServerConfig config = getServerConfig(context);
        if (config != null) {
            final String protocolBindings = getAttributeValue(operation, PROTOCOL_BINDINGS);
            final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
            final PathElement confElem = address.getElement(address.size() - 2);
            final String configType = confElem.getKey();
View Full Code Here


   }

   private void setupHTMLResponseHeader(PrintWriter writer)
   {
      SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
      ServerConfig serverConfig = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();
      writer.println("<head>");
      writer.println("<meta http-equiv='Content-Type content='text/html; charset=iso-8859-1'>");
      writer.println("<title>JBossWS / " + serverConfig.getImplementationVersion() + "</title>");
      writer.println("<link rel='stylesheet' href='./styles.css'>");
      writer.println("</head>");
   }
View Full Code Here

         {
            myRef.add(new StringRefAddr(PORT_COMPONENT_LINK, pcLink));
            try
            {
               SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
               ServerConfig config = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();
              
               String host = config.getWebServiceHost();
               int port = config.getWebServicePort();

               String servletURL = "http://" + host + ":" + port + "/jbossws/pclink";
               myRef.add(new StringRefAddr(PORT_COMPONENT_LINK_SERVLET, servletURL));
            }
            catch (Exception ex)
View Full Code Here

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

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

      String host = config.getWebServiceHost();
      int port = config.getWebServicePort();
      if ("https".equals(uriScheme))
         port = config.getWebServiceSecurePort();

      String urlStr = uriScheme + "://" + host + ":" + port + servicePath;
      try
      {
         return new URL(urlStr).toExternalForm();
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

/*     */     }
/* 520 */     File tmpdir = null;
/*     */     try
/*     */     {
/* 523 */       SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
/* 524 */       ServerConfig serverConfig = ((ServerConfigFactory)spiProvider.getSPI(ServerConfigFactory.class)).getServerConfig(); File tmpDir = serverConfig.getServerTempDir();
/* 525 */       tmpdir = serverConfig.getServerTempDir();
/* 526 */       tmpdir = new File(tmpdir.getCanonicalPath() + "/jbossws");
/* 527 */       tmpdir.mkdirs();
/*     */     }
/*     */     catch (Throwable th)
/*     */     {
View Full Code Here

/*     */       {
/* 104 */         myRef.add(new StringRefAddr("PORT_COMPONENT_LINK", pcLink));
/*     */         try
/*     */         {
/* 107 */           SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
/* 108 */           ServerConfig config = ((ServerConfigFactory)spiProvider.getSPI(ServerConfigFactory.class)).getServerConfig();
/*     */
/* 110 */           String host = config.getWebServiceHost();
/* 111 */           int port = config.getWebServicePort();
/*     */
/* 113 */           String servletURL = "http://" + host + ":" + port + "/jbossws/pclink";
/* 114 */           myRef.add(new StringRefAddr("PORT_COMPONENT_LINK_SERVLET", servletURL));
/*     */         }
/*     */         catch (Exception ex)
View Full Code Here

      File tmpdir = null;
      try
      {
         SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
         ServerConfig serverConfig = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();
         File tmpDir = serverConfig.getServerTempDir();
         tmpdir = serverConfig.getServerTempDir();
         tmpdir = new File(tmpdir.getCanonicalPath() + "/jbossws");
         tmpdir.mkdirs();
      }
      catch (Throwable th)
      {
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

/*     */     }
/* 223 */     if (uriScheme == null) {
/* 224 */       uriScheme = "http";
/*     */     }
/* 226 */     SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
/* 227 */     ServerConfig config = ((ServerConfigFactory)spiProvider.getSPI(ServerConfigFactory.class)).getServerConfig();
/*     */
/* 229 */     String host = config.getWebServiceHost();
/* 230 */     int port = config.getWebServicePort();
/* 231 */     if ("https".equals(uriScheme)) {
/* 232 */       port = config.getWebServiceSecurePort();
/*     */     }
/* 234 */     String urlStr = uriScheme + "://" + host + ":" + port + servicePath;
/*     */     try
/*     */     {
/* 237 */       return new URL(urlStr).toExternalForm();
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.