Examples of EndpointInfo


Examples of com.sun.corba.se.spi.activation.EndPointInfo

                    }

                    ep.setLocatorPort(port);

                    endpointList[i++] =
                        new EndPointInfo(ep.getType(), ep.getPort());
                }

                activator.registerEndpoints(
                    data.getPersistentServerId(), data.getORBId(),
                        endpointList);
View Full Code Here

Examples of org.apache.cxf.service.model.EndpointInfo

        }
        return null;
    }
   
    protected final Map<Object, Crypto> getCryptoCache() {
        EndpointInfo info = message.getExchange().get(Endpoint.class).getEndpointInfo();
        synchronized (info) {
            Map<Object, Crypto> o =
                CastUtils.cast((Map<?, ?>)message.getContextualProperty(CRYPTO_CACHE));
            if (o == null) {
                o = new ConcurrentHashMap<Object, Crypto>();
                info.setProperty(CRYPTO_CACHE, o);
            }
            return o;
        }
    }
View Full Code Here

Examples of org.apache.cxf.service.model.EndpointInfo

   
    protected void processGET(Request request, Response response) throws Exception {
        if (request.getParameter("xsd") != null || request.getParameter("XSD") != null) {
            getWsdl(request, response);
        } else if (endpoint.isSOAP11()) {
            EndpointInfo ei = this.destination.getEndpointInfo();
            response.setContentType("text/html");
            PrintWriter pw = new PrintWriter(response.getOutputStream());
            pw.write("<html><title>Web Service</title><body>");
            pw.write("Hi, this is '" + ei.getService().getName().getLocalPart() + "' web service.");
            pw.write("</body></html>");
            pw.flush();
        } else {
            processPOST(request, response);
        }
View Full Code Here

Examples of org.apache.cxf.service.model.EndpointInfo

    }
  
    public void getWsdl(Request request, Response response) throws Exception {
        GeronimoQueryHandler queryHandler = new GeronimoQueryHandler(this.bus);
        URI requestURI = request.getURI();
        EndpointInfo ei = this.destination.getEndpointInfo();
        OutputStream out = response.getOutputStream();
        String baseUri = requestURI.toString();
        response.setContentType("text/xml");
        queryHandler.writeResponse(baseUri, null, ei, out);
    }   
View Full Code Here

Examples of org.apache.cxf.service.model.EndpointInfo

        Message msg = new MessageImpl();
        CorbaMessage message = new CorbaMessage(msg);
        List<CorbaTypeMap> typeMaps = new ArrayList<CorbaTypeMap>();              
        TestUtils testUtils = new TestUtils();
        CorbaDestination destination = testUtils.getExceptionTypesTestDestination();
        EndpointInfo endpointInfo = destination.getEndPointInfo();
        QName name = new QName("http://schemas.apache.org/idl/except", "review_data", "");
        BindingOperationInfo bInfo = destination.getBindingInfo().getOperation(name);
        OperationType opType = bInfo.getExtensor(OperationType.class);
       
        List<TypeMappingType> corbaTypes =
            endpointInfo.getService().getDescription().getExtensors(TypeMappingType.class);       
        if (corbaTypes != null) {
            CorbaUtils.createCorbaTypeMap(typeMaps, corbaTypes);
        }
       
        ExceptionList exList = conduit.getExceptionList(conduit.getOperationExceptions(opType, typeMaps),
View Full Code Here

Examples of org.apache.cxf.service.model.EndpointInfo

                                         List.class, List.class});                                                                                  
        CorbaInInterceptor inInterceptor = control.createMock(CorbaInInterceptor.class,
                                             new Method[] {m});
                                                                                                                      
        CorbaDestination destination = control.createMock(CorbaDestination.class);
        EndpointInfo endpointInfo = control.createMock(EndpointInfo.class);
        ServiceInfo sInfo = control.createMock(ServiceInfo.class);
        BindingInfo bInfo = control.createMock(BindingInfo.class);
        InterfaceInfo info = control.createMock(InterfaceInfo.class);
        BindingOperationInfo bopInfo = control.createMock(BindingOperationInfo.class);
        OperationInfo opInfo = control.createMock(OperationInfo.class);
View Full Code Here

Examples of org.apache.cxf.service.model.EndpointInfo

                                      OperationType opType,
                                      QName opQName)
        throws Exception {
       
        BindingInfo bInfo = destination.getBindingInfo();                             
        EndpointInfo eptInfo = destination.getEndPointInfo();
        BindingOperationInfo bOpInfo = bInfo.getOperation(opQName);
        OperationInfo opInfo = bOpInfo.getOperationInfo();       
        Exchange exg = corbaMsg.getExchange();
        exg.put(BindingInfo.class, bInfo);
        exg.put(InterfaceInfo.class, info);
View Full Code Here

Examples of org.apache.cxf.service.model.EndpointInfo

    public EndpointInfo setupServiceInfo(String ns, String wsdl, String serviceName, String portName) throws Exception {     
        URL wsdlUrl = getClass().getResource(wsdl);
        WSDLServiceFactory factory = new WSDLServiceFactory(bus, wsdlUrl, new QName(ns, serviceName));

        Service service = factory.create();
        EndpointInfo endpointInfo = service.getServiceInfo().getEndpoint(new QName(ns, portName));
        return endpointInfo;

    }                 
View Full Code Here

Examples of org.apache.cxf.service.model.EndpointInfo

      
       EndpointReferenceType  rtype = destination.getAddress();
       assertTrue("EndpointReferenceType should not be null", rtype != null);      
       BindingInfo bindingInfo = destination.getBindingInfo();
       assertTrue("BindingInfo should not be null", bindingInfo != null);      
       EndpointInfo endpointInfo = destination.getEndPointInfo();
       assertTrue("EndpointInfo should not be null", endpointInfo != null);
      
       Message m = new MessageImpl();
       CorbaServerConduit serverConduit = (CorbaServerConduit)destination.getBackChannel(m, m, rtype);
       assertTrue("CorbaServerConduit should not be null", serverConduit != null);            
View Full Code Here

Examples of org.apache.cxf.service.model.EndpointInfo

        String transportURI = "http://schemas.xmlsoap.org/wsdl/soap/";
        if (b instanceof SoapBindingInfo) {
            SoapBindingInfo sbi = (SoapBindingInfo)b;
            transportURI = sbi.getTransportURI();
        }
        EndpointInfo info = new SoapEndpointInfo(serviceInfo, transportURI);
       
        if (ees != null) {
            for (Iterator<?> itr = ees.iterator(); itr.hasNext();) {
                Object extensor = itr.next();
   
                if (SOAPBindingUtil.isSOAPAddress(extensor)) {
                    final SoapAddress sa = SOAPBindingUtil.getSoapAddress(extensor);
   
                    info.addExtensor(sa);
                    info.setAddress(sa.getLocationURI());
                    if (isJMSSpecAddress(sa.getLocationURI())) {
                        info.setTransportId(SoapJMSConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID);
                    }
                } else {
                    info.addExtensor(extensor);
                }
            }
        }
       
        return info;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.