Package flex.messaging.services

Examples of flex.messaging.services.HTTPProxyService


{
   
    public void initialize(String id, ConfigMap properties)
    {
         // Create Service and add to the MessageBroker
        HTTPProxyService proxyService = createProxyService();
        getMessageBroker().addService(proxyService);
    }
View Full Code Here


           <channel ref="qa-secure-amf"></channel>
        </default-channels>
    */
    private HTTPProxyService createProxyService()
    {
        HTTPProxyService proxyService = new HTTPProxyService(true);
        proxyService.setId("proxy-service");
        proxyService.addDefaultChannel("qa-http");
        proxyService.addDefaultChannel("qa-amf");
        proxyService.addDefaultChannel("qa-secure-amf");
        proxyService.registerAdapter("http-proxy", "flex.messaging.services.http.HTTPProxyAdapter");
        proxyService.registerAdapter("soap-proxy", "flex.messaging.services.http.SOAPProxyAdapter");
        proxyService.setDefaultAdapter("http-proxy");

        return proxyService;
    }
View Full Code Here

     *
     * @param service  The HTTP proxy service.
     */
    public void setService(Service service)
    {
        HTTPProxyService proxyService = (HTTPProxyService)service;
        super.setService(proxyService);
    }
View Full Code Here

   

    public void initialize(String id, ConfigMap properties)
    {
        // Create Service and add to the MessageBroker
        HTTPProxyService proxyService = createProxyService();
        getMessageBroker().addService(proxyService);
       
        // Create destination and add to the Service
        String dest = "HTTPProxyDest_startup";
        HTTPProxyDestination proxyDest = createProxyDestination(dest, proxyService);                  
        proxyService.addDestination(proxyDest);
       
        // This is needed to set the properties on the adapter: after both service
        // and destination exist
        createAdapter(proxyDest);       
    }
View Full Code Here

           <channel ref="qa-secure-amf"></channel>
        </default-channels>
    */
    private HTTPProxyService createProxyService()
    {
        HTTPProxyService proxyService = new HTTPProxyService(true);
        proxyService.setId("proxy-service");
        proxyService.addDefaultChannel("qa-http");
        proxyService.addDefaultChannel("qa-amf");
        proxyService.addDefaultChannel("qa-secure-amf");
        proxyService.registerAdapter("http-proxy", "flex.messaging.services.http.HTTPProxyAdapter");
        proxyService.registerAdapter("soap-proxy", "flex.messaging.services.http.SOAPProxyAdapter");
        proxyService.setDefaultAdapter("http-proxy");

        return proxyService;
    }
View Full Code Here

   
    public String createProxyService()
    {
        String serviceId = "proxy-service";
       
        HTTPProxyService proxyService = new HTTPProxyService();
        proxyService.setId(serviceId);
        proxyService.setManaged(true);
        proxyService.setMessageBroker(msgBroker);
        proxyService.addDefaultChannel("qa-http");
        //proxyService.addDefaultChannel("my-amf");
        proxyService.registerAdapter("http-proxy", "flex.messaging.services.http.HTTPProxyAdapter");
        proxyService.registerAdapter("soap-proxy", "flex.messaging.services.http.SOAPProxyAdapter");
        proxyService.setDefaultAdapter("http-proxy");
        msgBroker.addService(proxyService);
        if (msgBroker.isStarted())
            proxyService.start();
                       
        return "Service: "+serviceId+" created";
    }
View Full Code Here

    public String createProxyDestination()
    {
        String serviceId = "proxy-service";
        String id = "RC_WeatherService";
       
        HTTPProxyService proxyService = (HTTPProxyService)msgBroker.getService(serviceId);
        HTTPProxyDestination proxyDest = new HTTPProxyDestination();
        proxyDest.setId(id);
        proxyDest.setManaged(true);
        proxyDest.setService(proxyService);
       
        // we'll use the default channel - so nothing else is needed            
        // we'll use the default adapter - so nothing else is needed
        // set destination properties
              
        proxyDest.setDefaultUrl("http://{server.name}:{server.port}/{context.root}/services/WeatherService?wsdl");
        proxyDest.addDynamicUrl("http://{server.name}:*/{context.root}/services/WeatherService");

        proxyService.addDestination(proxyDest);
       
        if (proxyService.isStarted())
            proxyDest.start();
       
        return "Destination: "+id+" created for Service: "+serviceId;
    }
View Full Code Here

{
   
   public void initialize(String id, ConfigMap properties)
    {
        // Get the instance of the proxy-service from MessageBroker
        HTTPProxyService proxyService = (HTTPProxyService)broker.getService("proxy-service");
       
        // Create destination and add to the Service
        id = "SOAPProxyDest_startup";       
        HTTPProxyDestination proxyDest = createProxyDestination(id, proxyService);                  
       
View Full Code Here

   

    public void start()
    {
        // Get the instance of the proxy-service from MessageBroker
        HTTPProxyService proxyService = (HTTPProxyService)broker.getService("proxy-service");
       
        // Create destination and add to the Service
        String id = "SOAPProxyDest_runtime";       
        HTTPProxyDestination proxyDest = createProxyDestination(id, proxyService);         
        // This is needed to set the properties on the adapter: after both service
View Full Code Here

{
   
   public void initialize(String id, ConfigMap properties)
    {
        // Get the instance of the proxy-service from MessageBroker
        HTTPProxyService proxyService = (HTTPProxyService)getMessageBroker().getService("proxy-service");
       
        // Create destination and add to the Service
        String dest = "HTTPProxyDest_startup";
        HTTPProxyDestination proxyDest = createProxyDestination(dest, proxyService);                  
       
View Full Code Here

TOP

Related Classes of flex.messaging.services.HTTPProxyService

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.