Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.security.net
Class ConnectionFilterImpl

java.lang.Object
  extended by weblogic.security.net.ConnectionFilterImpl

All Implemented Interfaces:
EventListener, ConnectionFilter, ConnectionFilterRulesListener

public class ConnectionFilterImpl
extends Object
implements ConnectionFilter, ConnectionFilterRulesListener

Default connection filter implementation. This class accepts all incoming connections and also provides static factory methods that allow the server to obtain the current connection filter.


Method Summary
 void accept(ConnectionEvent evt)
          Filters a client connection event.
 void checkRules(String[] filterList)
          Check the current rules.
protected  void checkRules(String[] filterList, Vector entries)
           
static boolean filterEnabled()
          Indicate whether the connection filter is enabled in this server.
static ConnectionFilter getFilter()
          Return the current server-wide connection filter in use, if any.
protected static int parseSingleAddress(String str)
           
static void setFilter(ConnectionFilter filter)
          Deprecated.  
 void setRules(String[] filterList)
          Set and check the current rules.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

checkRules

public void checkRules(String[] filterList)
                throws ParseException
Check the current rules.
Specified by:
checkRules in interface ConnectionFilterRulesListener
Parameters:
filterList - list of filter rules.
Throws:
ParseException - a problem occurred while reading the rules.

checkRules

protected void checkRules(String[] filterList,
                          Vector entries)
                   throws ParseException
Throws:
ParseException

setRules

public void setRules(String[] filterList)
              throws ParseException
Set and check the current rules.
Specified by:
setRules in interface ConnectionFilterRulesListener
Parameters:
filterList - list of filter rules.
Throws:
ParseException - a problem occurred while reading the rules.

accept

public void accept(ConnectionEvent evt)
            throws FilterException
Filters a client connection event. If the connection should be allowed, this method returns normally.
Specified by:
accept in interface ConnectionFilter
Parameters:
evt - the connection event
Throws:
FilterException - the connection should be rejected by the server

parseSingleAddress

protected static final int parseSingleAddress(String str)
                                       throws IOException
Throws:
IOException

filterEnabled

public static final boolean filterEnabled()
Indicate whether the connection filter is enabled in this server.

getFilter

public static final ConnectionFilter getFilter()
Return the current server-wide connection filter in use, if any.

setFilter

public static final void setFilter(ConnectionFilter filter)
Deprecated. 
Set the connection filter to the given instance. This method can only be called once per server instance.

This method is deprecated. Use the ConnectionFilter attribute on the SecurityMBean instead. Any filter set through this method will not be reflected in the console.


Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09