QuickServer
v1.4.7

org.quickserver.util.xmlreader
Class IpFilterConfig

java.lang.Object
  extended byorg.quickserver.util.xmlreader.IpFilterConfig
All Implemented Interfaces:
java.io.Serializable

public class IpFilterConfig
extends java.lang.Object
implements java.io.Serializable

This class encapsulate the IP based Filter config. The xml is <ip-filter>...</ip-filter>
Note: Make sure that access from 127.0.0.1 is allowed at all times, else some of the QsAdmin command will fail.

Since:
1.3.3
Author:
Akshathkumar Shetty
See Also:
Serialized Form

Constructor Summary
IpFilterConfig()
           
 
Method Summary
 void addClientIpAddress(java.lang.String clientIpAddress)
          Adds a Client Ip Address to the list
 boolean getAllowAccess()
          Returns the allow access flag.
 boolean getEnable()
          Returns the IP filter enable flag.
 java.util.ArrayList getIpCollection()
          Returns ClientIpAddress collection
 java.util.Iterator iterator()
           
 void setAllowAccess(boolean enable)
          Sets the allow access flag.
 void setEnable(boolean enable)
          Sets the IP filter enable flag.
 java.lang.String toXML(java.lang.String pad)
          Returns XML config of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IpFilterConfig

public IpFilterConfig()
Method Detail

addClientIpAddress

public void addClientIpAddress(java.lang.String clientIpAddress)
Adds a Client Ip Address to the list


getIpCollection

public java.util.ArrayList getIpCollection()
Returns ClientIpAddress collection


iterator

public java.util.Iterator iterator()

setEnable

public void setEnable(boolean enable)
Sets the IP filter enable flag. XML Tag: <ip-filter><enable>true</enable></ip-filter> Allowed values = true | false

See Also:
getEnable()

getEnable

public boolean getEnable()
Returns the IP filter enable flag.

See Also:
setEnable(boolean)

setAllowAccess

public void setAllowAccess(boolean enable)
Sets the allow access flag. XML Tag: <ip-filter><allow-access>true</allow-access></ip-filter> Allowed values = true | false

See Also:
getAllowAccess()

getAllowAccess

public boolean getAllowAccess()
Returns the allow access flag.

See Also:
setAllowAccess(boolean)

toXML

public java.lang.String toXML(java.lang.String pad)
Returns XML config of this class.

Since:
1.3

QuickServer
v1.4.7

Copyright © 2003-2006 QuickServer.org