Package org.jivesoftware.openfire.http

Examples of org.jivesoftware.openfire.http.HttpSession


            throws UnauthorizedException {
        if (serverName == null) {
            throw new UnauthorizedException("Server not initialized");
        }
        PacketDeliverer backupDeliverer = server.getPacketDeliverer();
        HttpSession session = new HttpSession(backupDeliverer, serverName, address, id, rid, connection);
        Connection conn = session.getConnection();
        conn.init(session);
        conn.registerCloseListener(clientSessionListener, session);
        localSessionManager.getPreAuthenticatedSessions().put(session.getAddress().getResource(), session);
        connectionsCounter.incrementAndGet();
        return session;
    }
View Full Code Here


            // - tell servlet we're expecting a file with a given ID
            // - silently discard the packet without notifying anyone
            //   - actually, give the initiator a URL to post to w/ token?
            // - servlet continues where the POSTed file left off
           
            HttpSession httpSession = (HttpSession)initiatorSession;
            HttpConnection httpConnection = (HttpConnection)httpSession.getConnection();
           
           
            // does getServerName include port? is it the actual HTTP host name?
            String transferPostUrl = "http://"+httpSession.getServerName()+"/fileupload.jsp";

            IQ httpInfoIQ = new IQ(IQ.Type.set);
            httpInfoIQ.setTo(initiator);
            // FIXME this seems like gross misuse of error... make a custom packet extension.
            httpInfoIQ.setError(new PacketError(PacketError.Condition.redirect, PacketError.Type.modify, transferPostUrl) );
View Full Code Here

TOP

Related Classes of org.jivesoftware.openfire.http.HttpSession

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.