Package flex.messaging.endpoints

Examples of flex.messaging.endpoints.HTTPEndpoint


    private void createHttpLongPollEndpoint()
    {
        String endpointId = "data-http-long-poll";
        String endpointUrl = "http://{server.name}:{server.port}/qa-manual/messagebroker/httplongpoll";
        String endpointClass = "flex.messaging.endpoints.HTTPEndpoint";        
        HTTPEndpoint httpEndpoint = (HTTPEndpoint)broker.createEndpoint(endpointId, endpointUrl, endpointClass)
       
        // <polling-enabled> is set on the client via the PollingChannel API
        // <polling-interval-millis> is set on the client via the PollingChannel API
        httpEndpoint.setWaitInterval(10000);
        httpEndpoint.setMaxWaitingPollRequests(2);
    }
View Full Code Here


    private void createHttpWaitingPollRequestsEndpoint()
    {
        String endpointId = "data-http-waiting-poll-requests";
        String endpointUrl = "http://{server.name}:{server.port}/qa-manual/messagebroker/httpwaitingpoll";
        String endpointClass = "flex.messaging.endpoints.HTTPEndpoint";        
        HTTPEndpoint httpEndpoint = (HTTPEndpoint)broker.createEndpoint(endpointId, endpointUrl, endpointClass)
       
        // <polling-enabled> is set on the client via the PollingChannel API
        // <polling-interval-millis> is set on the client via the PollingChannel API
        httpEndpoint.setWaitInterval(-1);
        httpEndpoint.setMaxWaitingPollRequests(4);
        httpEndpoint.setClientWaitInterval(3000);
    }
View Full Code Here

TOP

Related Classes of flex.messaging.endpoints.HTTPEndpoint

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.