org.jumpmind.symmetric.security.inet
Class AbstractInetAddressAuthorizerCompiler

java.lang.Object
  extended by org.jumpmind.symmetric.security.inet.AbstractInetAddressAuthorizerCompiler
All Implemented Interfaces:
IInetAddressAuthorizerCompiler
Direct Known Subclasses:
Inet4AddressAuthorizerCompiler, Inet6AddressAuthorizerCompiler

public abstract class AbstractInetAddressAuthorizerCompiler
extends java.lang.Object
implements IInetAddressAuthorizerCompiler

Base class that all IInetAddressAuthorizerCompiler implementations should extend.

Author:
dmichels2

Field Summary
static java.lang.String ANY_TOKEN
          Marker token to denote an all inclusive, or wildcarded, IP address piece.
static java.lang.String CIDR_TOKEN
          CIDR Marker token which separates an address and the number of significant bits used to evaluate authorization.
static java.lang.String RANGE_TOKEN
          Marker token to denote an inclusive range of values in an IP address piece.
 
Constructor Summary
AbstractInetAddressAuthorizerCompiler()
           
 
Method Summary
 java.util.List<IRawInetAddressAuthorizer> compile(java.lang.String[] filterStrings)
          Filter string primary compilation entry point.
protected abstract  IRawInetAddressAuthorizer compileForIpVersion(java.lang.String filter)
          Method to implement all of the IP version specific filter compilation logic.
protected abstract  java.lang.String getAddressSeparator()
           
protected abstract  java.lang.String getBroadcastString()
           
protected  java.lang.String replaceSymbols(java.lang.String filter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY_TOKEN

public static final java.lang.String ANY_TOKEN
Marker token to denote an all inclusive, or wildcarded, IP address piece. This token specifies that all address are valid for this piece of an IP address. Value: "*"

See Also:
Constant Field Values

RANGE_TOKEN

public static final java.lang.String RANGE_TOKEN
Marker token to denote an inclusive range of values in an IP address piece. This token specifies that all address that fall within the range are valid for this piece of an IP address. Value: "-"

See Also:
Constant Field Values

CIDR_TOKEN

public static final java.lang.String CIDR_TOKEN
CIDR Marker token which separates an address and the number of significant bits used to evaluate authorization. Value: "/"

See Also:
Constant Field Values
Constructor Detail

AbstractInetAddressAuthorizerCompiler

public AbstractInetAddressAuthorizerCompiler()
Method Detail

compile

public java.util.List<IRawInetAddressAuthorizer> compile(java.lang.String[] filterStrings)
                                                  throws java.net.UnknownHostException
Filter string primary compilation entry point.

Specified by:
compile in interface IInetAddressAuthorizerCompiler
Parameters:
filterStrings -
Returns:
Throws:
java.net.UnknownHostException

replaceSymbols

protected java.lang.String replaceSymbols(java.lang.String filter)
Parameters:
filter -
Returns:

compileForIpVersion

protected abstract IRawInetAddressAuthorizer compileForIpVersion(java.lang.String filter)
                                                          throws java.net.UnknownHostException
Method to implement all of the IP version specific filter compilation logic.

Parameters:
filter - IP filter definition
Returns:
Throws:
java.net.UnknownHostException

getBroadcastString

protected abstract java.lang.String getBroadcastString()
Returns:

getAddressSeparator

protected abstract java.lang.String getAddressSeparator()
Returns:


Copyright © 2007-2008. All Rights Reserved.