Package org.jboss.wsf.spi.deployment

Examples of org.jboss.wsf.spi.deployment.Endpoint


         writer.print("</tr>");
      }

      for (ObjectName oname : epNames)
      {
         Endpoint ep = epRegistry.getEndpoint(oname);

         writer.print("<tr>");
         writer.print("  <td>Endpoint Name</td>");
         writer.print("  <td>" + ep.getName() + "</td>");
         writer.print("</tr>");
         writer.print("<tr>");
         writer.print("  <td>Endpoint Address</td>");
         writer.print("  <td><a href='" + ep.getAddress() + "?wsdl'>" + ep.getAddress() + "?wsdl</a></td>");
         writer.print("</tr>");
         writer.print("<tr>");
         writer.print("  <td colspan=2>");
         writer.print("  ");
         writer.print("");

         EndpointMetrics metrics = ep.getEndpointMetrics();
         if (metrics != null)
         {
            writer.print("<table class='metrics'>");
            writer.print("<tr>");
            writer.print(" <td>StartTime</td>");
View Full Code Here


         throw new IllegalArgumentException("Endpoint name cannot be null");

      if (isRegistered(epName) == false)
         throw new IllegalStateException("Endpoint not registered: " + epName);

      Endpoint endpoint = endpoints.get(epName);
      return endpoint;
   }
View Full Code Here

      return endpoints;
   }

   public Endpoint getEndpointByName(String shortName)
   {
      Endpoint retEndpoint = null;
      for (Endpoint ep : endpoints)
      {
         if (ep.getShortName().equals(shortName))
         {
            retEndpoint = ep;
View Full Code Here

         {
            String ejbName = container.getComponentName();
            String epBean = container.getComponentClassName();

            // Create the endpoint
            Endpoint ep = newEndpoint(epBean);
            ep.setShortName(ejbName);
            service.addEndpoint(ep);
         }
      }

      return dep;
View Full Code Here

               throw new IllegalStateException("Cannot obtain bean meta data for: " + ejbLink);

            String ejbClass = beanMetaData.getEjbClass();

            // Create the endpoint
            Endpoint ep = newEndpoint(ejbClass);
            ep.setShortName(ejbLink);
            service.addEndpoint(ep);
         }
      }
      return dep;
   }
View Full Code Here

      {
         String servletName = servlet.getName();
         String targetBean = getTargetBean(servlet);

         // Create the endpoint
         Endpoint ep = newEndpoint(targetBean);
         ep.setShortName(servletName);
         service.addEndpoint(ep);
      }

      return dep;
   }
View Full Code Here

            ServletMetaData servlet = getServletForName(webMetaData, servletLink);
            String targetBean = getTargetBean(servlet);

            // Create the endpoint
            Endpoint ep = newEndpoint(targetBean);
            ep.setShortName(servletLink);
            service.addEndpoint(ep);
         }
      }

      return dep;
View Full Code Here

     * @param message The ESB Aware (normalized) SOAP request message.
     * @return The SOAP response message.
     * @throws ActionProcessingException
     */
    public Message process(Message message) throws ActionProcessingException {
        Endpoint endpoint = WebServiceUtils.getServiceEndpoint(jbossws_endpoint, jbossws_context);
        byte[] soapMessage;

        if(endpoint == null) {
            throw new ActionProcessingException("Unknown Service Endpoint '" + jbossws_endpoint + "'.");
        }

        soapMessage = getSOAPMessagePayload(message);
        try {
            messageTL.set(message);

            RequestHandler requestHandler = endpoint.getRequestHandler();

            final Map<String, List<String>> headers = new HashMap<String, List<String>>() ;
            final Properties properties = message.getProperties() ;
            final String[] names = properties.getNames() ;
            for(final String name: names)
            {
                final Object value = properties.getProperty(name) ;
                if (value != null)
                {
                    String normalisedName = name.toLowerCase() ;

                    if ("content-type".equals(normalisedName))
                    {
                        if ("application/octet-stream".equals(value))
                        {
                            continue;
                        }
                        else
                        {
                            // CXF needs it to be case sensitive
                            normalisedName = "Content-Type";
                        }
                    }

                    final List<String> values = headers.get(normalisedName) ;
                    if (values == null)
                    {
                        final List<String> newValues = new ArrayList<String>() ;
                        newValues.add(value.toString()) ;
                        headers.put(normalisedName, newValues) ;
                    }
                    else
                    {
                        values.add(value.toString()) ;
                    }
                }
            }

            //CXF throws NPE in handler if content-length not set
            List<String> newValues = new ArrayList<String>();
            newValues.add(String.valueOf(soapMessage.length));
            headers.put("content-length", newValues);

            final String endpointAddress = endpoint.getAddress() ;
            String path = null ;
            if (endpointAddress != null)
            {
                try
                {
View Full Code Here

            throw new ConfigurationException("Property '" + WebServiceUtils.JBOSSWS_ENDPOINT + "' not specified.");
        }
    }

    public String getWsdlAddress() {
        Endpoint endpoint = WebServiceUtils.getServiceEndpoint(endpointName, contextName);

        if(endpoint != null) {
            return endpoint.getAddress() + "?wsdl";
        } else {
            logger.warn("Requested contract info for unknown webservice endpoint '" + endpointName + "'.");
            return null;
        }
    }
View Full Code Here

    for (ObjectName objectName : objectNames) {
      String endpoint = objectName
          .getKeyProperty(Endpoint.SEPID_PROPERTY_ENDPOINT);

      if (endpoint != null && endpoint.equals(endpointName)) {
        Endpoint ep = registry.getEndpoint(objectName);
        endpointAddress = ep.getAddress();
        return endpointAddress;
      }
    }

    return null;
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.deployment.Endpoint

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.