BEA Systems, Inc.


weblogic.security.net
Interface ConnectionFilter

All Known Subinterfaces:
ConnectionFilterRulesListener
All Known Implementing Classes:
ConnectionFilterImpl

public interface ConnectionFilter
extends java.util.EventListener

Connection filter interface. The server uses this interface to determine whether incoming connections from clients should be allowed.

To program the server to perform connection filtering, set the weblogic.security.net.connectionFilter property to the name of a class that implements this interface. The class that implements this interface must have a public no-arg constructor.

The connection filter is not called immediately when a client connects to the server. Rather, it is called after the client has sent enough bytes for the server to determine what protocol the client is using. The login timeout and protocol mechanisms will deal correctly with clients that do not send enough bytes to determine the client's protocol.

Author:
Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.

Method Summary
 void accept(ConnectionEvent evt)
          Accept or deny an incoming connection from a client.
 

Method Detail

accept

public void accept(ConnectionEvent evt)
            throws FilterException
Accept or deny an incoming connection from a client. If the connection is to be accepted, this method returns normally. Otherwise, it throws a FilterException, which may describe why the client's connection was rejected.

Parameters:
evt - the connection event describing a connection to filter
Throws:
FilterException - thrown if the client's connection is to be rejected

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs70

Copyright © 2004 BEA Systems, Inc. All Rights Reserved.
WebLogic Server 7.0 API Reference