|
WebLogic Server 6.0 Code Examples, BEA Systems, Inc. |
See:
Description
Class Summary | |
FastFilterEntry | Fast filter rule. |
FilterEntry | Abstract filter rule. |
SimpleConnectionFilter | Simple rules-based connection filter example. |
SlowFilterEntry | Slow filter rule. |
The weblogic.security.net package provides a way to restrict client connections to WebLogic Server based on the client's origin and protocol. The net code example provides an implementation of the ConnectionFilter interface. The SimpleConnectionFilter class calls the accept() method after gathering information about the client connection including the remote IP address, port number, and the connection protocol (HTTP, HTTPS, T3, T3S, or IIOP). This information is passed to the ConnectionFilter.accept() method in a ConnectionEvent. Based on the information, the ConnectionFilter.accept() method either allows or denies the client connection. If the client connection is denied, a FilterException is thrown.
Perform the following steps in order to build and run the example:
javac -d %SERVER_CLASSES% *.java
Check the WebLogic Server log file located at config/examples/logs/weblogic.log for messages about denied connections.
Read more about connection filters and security in Programming WebLogic Security and Managing Security.
|
Documentation is available at http://e-docs.bea.com/wls/docs60 |