PacketRouterProxy.java 1.15 KB
Newer Older
Matt Tucker's avatar
Matt Tucker committed
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
/**
 * $RCSfile$
 * $Revision$
 * $Date$
 *
 * Copyright (C) 1999-2003 CoolServlets, Inc. All rights reserved.
 *
 * This software is the proprietary information of CoolServlets, Inc.
 * Use is subject to license terms.
 */
package org.jivesoftware.messenger.spi;

import org.jivesoftware.messenger.*;
import org.jivesoftware.messenger.auth.AuthToken;
import org.jivesoftware.messenger.auth.Permissions;

/**
 * Standard security proxy.
 *
 * @author Iain Shigeoka
 */
public class PacketRouterProxy implements PacketRouter {
    PacketRouter router;
    private org.jivesoftware.messenger.auth.AuthToken authToken;
    private Permissions permissions;

    public PacketRouterProxy(PacketRouter router, AuthToken authToken, Permissions permissions) {
        this.router = router;
        this.authToken = authToken;
        this.permissions = permissions;
    }

    public void route(XMPPPacket packet) {
        router.route(packet);
    }

    public void route(IQ packet) {
        router.route(packet);
    }

    public void route(Message packet) {
        router.route(packet);
    }

    public void route(Presence packet) {
        router.route(packet);
    }

}