Package com.volantis.vdp.scs.connectors.sps.connection

Examples of com.volantis.vdp.scs.connectors.sps.connection.SPSBroker


        URL url;

        try {
            url = new URL(request.getURL());
            if(isSPS(url)) {
                SPSBroker broker =
                    SPSConnectionPool.getConnectionByUrl(url).getBroker();
                SCPPacket packet = new SCPPacket(
                        SCPPacket.HTTP_REQUEST_RESPONSE,
                        reqId,
                        data.getBytes());
                broker.send(packet.getBytes());
                clientBroker.addConnToReqTmManager(reqId);

            } else {
                if(logger.isDebugEnabled()) {
                    logger.debug("HTTP proxing: " + url);
View Full Code Here


                                         ClientBroker clientBroker) {

        try {
            URL url = new URL("https://" + request.getURL());
            if(isSPS(url)) {
                SPSBroker broker =
                    SPSConnectionPool.getConnectionByUrl(url).getBroker();
                RequestManager.getSession(reqId).setSPSBroker(broker);
                SCPPacket packet = new SCPPacket(
                        SCPPacket.HTTPS_REQUEST_RESPONSE,
                        reqId,
                        data.getBytes());
                broker.send(packet.getBytes());
                clientBroker.addConnToReqTmManager(reqId);
            } else {
                if(logger.isDebugEnabled()) {
                    logger.debug("HTTPS proxing: " + request.getURL());
                }
View Full Code Here

     * @param data data that will be send to sps server
    * @param reqId idetifies a SCP packet sent to sps server
     */
    public static void sendHTTPSRequest( byte[] data, int reqId ) {

        SPSBroker spsBroker = RequestManager.getSPSBroker(reqId);
        SCPPacket packet = new SCPPacket(
                SCPPacket.HTTPS_REQUEST_RESPONSE,
                reqId,
                data);
        spsBroker.send(packet.getBytes());

    }
View Full Code Here

    public static SPSBroker getSPSBroker(int reqId) {

        ConnectionSession session =
            (ConnectionSession) sessions.get(indexOf(reqId));

        SPSBroker spsBroker = null;

        if(session != null)
            spsBroker = (SPSBroker) session.getSPSBroker();

        return spsBroker;
View Full Code Here

TOP

Related Classes of com.volantis.vdp.scs.connectors.sps.connection.SPSBroker

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.