LocalServerSession.java 1.46 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
/**
 * 
 */
package org.jivesoftware.openfire.session;

import org.jivesoftware.openfire.Connection;
import org.jivesoftware.openfire.StreamID;
import org.jivesoftware.openfire.auth.UnauthorizedException;
import org.xmpp.packet.Packet;

/**
 * @author dwd
 *
 */
public class LocalServerSession extends LocalSession implements ServerSession {
    protected boolean usingServerDialback = true;
    protected boolean outboundAllowed = false;
    protected boolean inboundAllowed = false;

    public LocalServerSession(String serverName, Connection connection,
            StreamID streamID) {
        super(serverName, connection, streamID);
    }

    /* (non-Javadoc)
     * @see org.jivesoftware.openfire.session.LocalSession#canProcess(org.xmpp.packet.Packet)
     */
    @Override
    boolean canProcess(Packet packet) {
        // TODO Auto-generated method stub
        return false;
    }

    /* (non-Javadoc)
     * @see org.jivesoftware.openfire.session.LocalSession#deliver(org.xmpp.packet.Packet)
     */
    @Override
    void deliver(Packet packet) throws UnauthorizedException {
        // TODO Auto-generated method stub

    }

    /* (non-Javadoc)
     * @see org.jivesoftware.openfire.session.LocalSession#getAvailableStreamFeatures()
     */
    @Override
    public String getAvailableStreamFeatures() {
        // TODO Auto-generated method stub
        return null;
    }


    public boolean isUsingServerDialback() {
        return usingServerDialback;
    }
    
}