Package org.jboss.wsf.spi.deployment

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


      }
   }

   private BindingCustomization getCustomization()
   {
      Endpoint ep = EndpointAssociation.getEndpoint();
      return ep != null ? ep.getAttachment(BindingCustomization.class) : null;
   }
View Full Code Here


      // Get the URL pattern from the endpoint
      String linkName = sepMetaData.getLinkName();
      if (linkName != null)
      {
         Endpoint endpoint = dep.getService().getEndpointByName(linkName);
         if (endpoint != null)
            urlPattern = endpoint.getURLPattern();
      }

      // If not, derive the context root from the deployment
      if (contextRoot == null)
      {
View Full Code Here

   {
      String pcLink = req.getParameter("pcLink");
      if (pcLink == null)
         throw new IllegalArgumentException("Cannot obtain request parameter 'pcLink'");

      Endpoint endpoint = epRegistry.resolve( new PortComponentResolver(pcLink) );
      if (endpoint == null)
         throw new WSException("Cannot resolve request parameter 'pcLink'");

      res.setContentType("text/plain");
      PrintWriter out = res.getWriter();

      ServerEndpointMetaData sepMetaData = endpoint.getAttachment(ServerEndpointMetaData.class);
      String endpointAddress = sepMetaData.getEndpointAddress();
      out.println(endpointAddress);

      log.debug("Resolved " + pcLink + " to: " + endpointAddress);
      out.close();
View Full Code Here

        } catch (final MalformedObjectNameException e) {
            throw new OperationFailedException(new ModelNode().set(e.getMessage()));
        }

        final EndpointRegistry registry = (EndpointRegistry) controller.getValue();
        final Endpoint endpoint = registry.getEndpoint(endpointObjectName);

        final ModelNode result = new ModelNode();
        if (endpoint != null && endpoint.getEndpointMetrics() != null) {
            final EndpointMetrics endpointMetrics = endpoint.getEndpointMetrics();
            if (MIN_PROCESSING_TIME.equals(metricName)) {
                result.set(String.valueOf(endpointMetrics.getMinProcessingTime()));
            } else if (MAX_PROCESSING_TIME.equals(metricName)) {
                result.set(String.valueOf(endpointMetrics.getMaxProcessingTime()));
            } else if (AVERAGE_PROCESSING_TIME.equals(metricName)) {
View Full Code Here

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

      for(ObjectName on : endpoints)
      {
       Endpoint ep = epManager.getEndpoint(on);
       if(ep.getAddress().endsWith("Workflow")){
           writer.print("<tr>");
           writer.print("  <td>ServiceEndpointID</td>");
           writer.print("  <td>"+ep.getProperty(Endpoint.SEPID_DOMAIN_ENDPOINT)+"</td>");
           writer.print("</tr>");
           writer.print("<tr>");
           writer.print("  <td>ServiceEndpointAddress</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("<fieldset><legend>PLANETS Workflow Data</legend>");
           writer.print("<table width='650' class='item-date'>");
           writer.print("<tr>");
           writer.print("  <td><b>StartTime</b></td>");
           writer.print("  <td><b>StopTime</b></td>");
           writer.print("  <td></td>");
           writer.print("</tr>");
           writer.print("<tr>");
           writer.print("  <td>"+ep.getEndpointMetrics().getStartTime()+"</td>");
 
           String stopTime = ep.getEndpointMetrics().getStopTime() != null ? ep.getEndpointMetrics().getStopTime().toString() : "";
           writer.print("  <td>"+stopTime+"</td>");
           writer.print("  <td></td>");
           writer.print("</tr>");
           writer.print("<tr>");
 
           writer.print("  <td><b>RequestCount</b></td>");
           writer.print("  <td><b>ResponseCount</b></td>");
           writer.print("  <td><b>FaultCount</b></td>");
           writer.print("</tr>");
           writer.print("<tr>");
           writer.print("  <td>"+ep.getEndpointMetrics().getRequestCount()+"</td>");
           writer.print("  <td>"+ep.getEndpointMetrics().getResponseCount()+"</td>");
           writer.print("  <td>"+ep.getEndpointMetrics().getFaultCount()+"</td>");
           writer.print("</tr>");
           writer.print("<tr>");
           writer.print("  <td><b>MinProcessingTime</b></td>");
           writer.print("  <td><b>MaxProcessingTime</b></td>");
           writer.print("  <td><b>AvgProcessingTime</b></td>");
           writer.print("</tr>");
           writer.print("<tr>");
           writer.print("  <td>"+ep.getEndpointMetrics().getMinProcessingTime()+"</td>");
           writer.print("  <td>"+ep.getEndpointMetrics().getMaxProcessingTime()+"</td>");
           writer.print("  <td>"+ep.getEndpointMetrics().getAverageProcessingTime()+"</td>");
           writer.print("</tr>");
           writer.print("");
           writer.print("");
           writer.print("</table></fieldset>");
           writer.print("");
View Full Code Here

      // Get the URL pattern from the endpoint
      String linkName = sepMetaData.getLinkName();
      if (linkName != null)
      {
         Endpoint endpoint = dep.getService().getEndpointByName(linkName);
         if (endpoint != null)
            urlPattern = endpoint.getURLPattern();
      }

      // If not, derive the context root from the deployment
      if (contextRoot == null)
      {
View Full Code Here

               // set service name
               serviceMetaData.setServiceName(wsdlEndpoint.getWsdlService().getName());
               QName interfaceQName = wsdlEndpoint.getInterface().getName();

               Endpoint ep = dep.getService().getEndpointByName(linkName);
               ServerEndpointMetaData sepMetaData = new ServerEndpointMetaData(serviceMetaData, ep, portName, interfaceQName, Type.JAXRPC);
               sepMetaData.setPortComponentName(pcMetaData.getPortComponentName());
               sepMetaData.setLinkName(linkName);
               serviceMetaData.addEndpoint(sepMetaData);
View Full Code Here

      this.servletName = servletName;
   }

   public Endpoint query(Iterator<Endpoint> endpoints)
   {
      Endpoint endpoint = null;

      if (contextPath.startsWith("/"))
         contextPath = contextPath.substring(1);

      while(endpoints.hasNext())
      {
         Endpoint auxEndpoint = endpoints.next();
         ObjectName sepId = auxEndpoint.getName();
         String propContext = sepId.getKeyProperty(Endpoint.SEPID_PROPERTY_CONTEXT);
         String propEndpoint = sepId.getKeyProperty(Endpoint.SEPID_PROPERTY_ENDPOINT);
         if (servletName.equals(propEndpoint) && contextPath.equals(propContext))
         {
            endpoint = auxEndpoint;
View Full Code Here

      // Setup the ServerEndpointMetaData
      QName portQName = new QName(targetNS, portName);
      QName portTypeQName = new QName(targetNS, name);
     
      Endpoint ep = dep.getService().getEndpointByName(linkName);
      ServerEndpointMetaData sepMetaData = new ServerEndpointMetaData(serviceMetaData, ep, portQName, portTypeQName, Type.JAXWS);
      sepMetaData.setLinkName(linkName);

      sepMetaData.setStyle(Style.DOCUMENT);
      sepMetaData.setParameterStyle(ParameterStyle.BARE);
View Full Code Here

         // JAXBIntros may mofiy the WSDL being generated
         // only true for server side invocation, tooling (WSProvide) doesnt support this
         BindingCustomization bindingCustomization = null;
         if (epMetaData instanceof ServerEndpointMetaData)
         {
            Endpoint endpoint = ((ServerEndpointMetaData)epMetaData).getEndpoint();
            bindingCustomization = endpoint != null ? endpoint.getAttachment(BindingCustomization.class) : null;
         }

         jaxbCtx = factory.createContext(javaTypes.toArray(new Class[0]), typeRefs, targetNS, false, bindingCustomization);
      }
      catch (WSException ex)
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.