Package flex.messaging.services.http

Examples of flex.messaging.services.http.HTTPProxyDestination


            <adapter ref="soap-proxy"></adapter>
        </destination>
     */  
    private HTTPProxyDestination createProxyDestination(String id, HTTPProxyService proxyService)
    {
        HTTPProxyDestination proxyDest = new HTTPProxyDestination(true);
        proxyDest.setId(id);
        //proxyDest.setService(proxyService);
        proxyService.addDestination(proxyDest);
      
        //Test warning "No channel with id '{0}' is known by the MessageBroker. Not adding the channel.",
        proxyDest.addChannel("bogus-channel-test");
        
        // set destination properties
        proxyDest.setDefaultUrl("http://10.60.144.65:8080/axis/services/echo?wsdl");
        proxyDest.addDynamicUrl("http://10.60.144.65:8080/axis/services/echo");
              
        return proxyDest;
    }
View Full Code Here


        // 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
        // and destination exist
        //createAdapter(proxyDest);
       
        //Must start destination in order to be usable
        proxyDest.start();
    }
View Full Code Here

        // 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);                  
       
        createAdapter(proxyDest);
    }
View Full Code Here

     *      </properties>
     *  </destination>
     **/  
    private HTTPProxyDestination createProxyDestination(String id, HTTPProxyService proxyService)
    {
        HTTPProxyDestination proxyDest = new HTTPProxyDestination(true);
        proxyDest.setId(id);
        proxyDest.setService(proxyService);
      
        proxyDest.addChannel("qa-amf");
       
        // set destination properties
        proxyDest.addDynamicUrl("http://10.60.144.65:8080/services/httpservice/echoParams.jsp");
        List list = new ArrayList();
        list.add("http://10.60.144.65:8080/services/httpservice/echoParams.jsp");
        proxyDest.addDynamicUrls(list);
        proxyDest.setDefaultUrl("http://10.60.144.65:8080/services/httpservice/echoParams.jsp");
        proxyDest.getDefaultUrl();
        proxyDest.setRemoteUsername(null);
        proxyDest.setRemotePassword(null);
        proxyDest.getRemotePassword();
        proxyDest.setUseCustomAuthentication(false);
        proxyDest.isUseCustomAuthentication();
                      
        return proxyDest;
    }
View Full Code Here

    public void start()
    {
        HTTPProxyService proxyService = (HTTPProxyService)getMessageBroker().getService("proxy-service");
        String id = "HTTPProxyDest_runtime";
        HTTPProxyDestination proxyDest = createProxyDestination(id, proxyService);
        //Use the following method to test more methods on HttpProxyAdapter
        createAdapter(proxyDest);
        proxyDest.start();
        modifyAdapter(proxyDest);
    }
View Full Code Here

     * @param id The id of the <code>HTTPProxyDestination</code>.
     * @return The <code>Destination</code> instanced created.
     */
    public Destination createDestination(String id)
    {          
        HTTPProxyDestination destination = new HTTPProxyDestination();
        destination.setId(id);
        destination.setManaged(isManaged());
        destination.setService(this);
       
        return destination;
    }
View Full Code Here

     *
     * @param destination The <code>Destination</code> instance to be added.
     */
    public void addDestination(Destination destination)
    {
        HTTPProxyDestination proxyDestination = (HTTPProxyDestination)destination;
        super.addDestination(proxyDestination);
    }
View Full Code Here

        }
       
        HTTPMessage message = (HTTPMessage)msg;

        String destination = message.getDestination();
        HTTPProxyDestination dest = (HTTPProxyDestination)destinations.get(destination);

        //use the remote settings if the message didn't specify them
        FlexRemoteCredentials remoteCredentials =
            FlexContext.getFlexSession().getRemoteCredentials(getId(), destination);
        if (remoteCredentials != null)
        {
            message.setRemoteUsername(remoteCredentials.getUsername());
            message.setRemotePassword((String)remoteCredentials.getCredentials());
        }
        else if (dest.getRemoteUsername() != null && dest.getRemotePassword() != null)
        {
            message.setRemoteUsername(dest.getRemoteUsername());
            message.setRemotePassword(dest.getRemotePassword());
        }

        ServiceAdapter adapter = dest.getAdapter();

        Object result;

        if (message instanceof SOAPMessage)
        {
View Full Code Here

     * @param id The id of the <code>HTTPProxyDestination</code>.
     * @return The <code>Destination</code> instanced created.
     */
    public Destination createDestination(String id)
    {          
        HTTPProxyDestination destination = new HTTPProxyDestination();
        destination.setId(id);
        destination.setManaged(isManaged());
        destination.setService(this);
       
        return destination;
    }
View Full Code Here

     *
     * @param destination The <code>Destination</code> instance to be added.
     */
    public void addDestination(Destination destination)
    {
        HTTPProxyDestination proxyDestination = (HTTPProxyDestination)destination;
        super.addDestination(proxyDestination);
    }
View Full Code Here

TOP

Related Classes of flex.messaging.services.http.HTTPProxyDestination

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.