FuseGuard Logo

fuseguard.components.filters
Component ContentLengthFilter

filters.BaseFilter
  |
  +--filters.ContentLengthFilter

Inspects the HTTP Content Length Header

Method Summary
public array getConfigurables()
          Returns a list of configurable properties
public string getDescription()
public numeric getMaximumLength()
          Returns the current maximum content length allowed.
public string getName()
public boolean getRejectContentLengthOnGET()
          Returns true if Content-Length is Rejected on HTTP GET.
public boolean getRequireContentLengthOnPOST()
          Returns true if Content-Length is required on HTTP POST.
public string getThreatCategory()
          Returns validation
public numeric inspectRequest()
public void setMaximumLength(numeric bytes)
          The default value is 10485760 which is 10MB
public void setRejectContentLengthOnGET(boolean reject)
          Reject requests with a Content-Length header on HTTP GET methods.
public void setRequireContentLengthOnPOST(boolean require)
          Require a Content-Length header on HTTP POST methods.

Methods inherited from filters.BaseFilter
inspectsCookieScope, logEnabled, inspectsFormScope, inspectsRequestBody, setFilterWhitelist, setFilterInstanceName, getFilterLevel, getLogLevel, setScopes, getRequestLogMessage, allowURI, inspectsURI, ignoreURI, inspectsRequest, inspectsCGIScope, setIgnoreVariableList, getHelp, getRequestLogMessageDetail, setAllowDenyOrder, getIPWhiteListID, setRequestLogMessage, init, setFilterLevel, filterRequest, blockEnabled, getFilterID, inspectsUrlScope, inspectVariable, getFirewall, setAllowURIList, filterEnabled, filterVariables, logOnly, getFilterInstanceName, getFilterComponent, getIPWhiteListProvider, setIgnoreURIList, setFilterID, getBlockLevel, ignoreVariable, denyURI, inspectResponse, hasIPWhiteList, setLogLevel, inspectVariables, setBlockLevel, ignoresVariable
 

Method Detail

getConfigurables

public array getConfigurables()
Returns a list of configurable properties


getDescription

public string getDescription()

getMaximumLength

public numeric getMaximumLength()
Returns the current maximum content length allowed.


getName

public string getName()

getRejectContentLengthOnGET

public boolean getRejectContentLengthOnGET()
Returns true if Content-Length is Rejected on HTTP GET.


getRequireContentLengthOnPOST

public boolean getRequireContentLengthOnPOST()
Returns true if Content-Length is required on HTTP POST.


getThreatCategory

public string getThreatCategory()
Returns validation


inspectRequest

public numeric inspectRequest()

setMaximumLength

public void setMaximumLength(numeric bytes)
The default value is 10485760 which is 10MB

Parameters:
numeric bytes

setRejectContentLengthOnGET

public void setRejectContentLengthOnGET(boolean reject)
Reject requests with a Content-Length header on HTTP GET methods.

Parameters:
boolean reject

setRequireContentLengthOnPOST

public void setRequireContentLengthOnPOST(boolean require)
Require a Content-Length header on HTTP POST methods.

Parameters:
boolean require