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
setAllowURIList, blockEnabled, ignoresVariable, setIgnoreURIList, setScopes, inspectsRequestBody, inspectsCGIScope, inspectsUrlScope, setFilterLevel, setAllowDenyOrder, filterVariables, denyURI, getFilterID, inspectsRequest, setFilterWhitelist, ignoreVariable, ignoreURI, getHelp, init, inspectVariables, getFilterComponent, getRequestLogMessageDetail, inspectsCookieScope, allowURI, setLogLevel, getBlockLevel, inspectsURI, logEnabled, hasIPWhiteList, getFilterInstanceName, filterEnabled, filterRequest, getIPWhiteListProvider, setFilterID, getFilterLevel, inspectResponse, logOnly, setIgnoreVariableList, setRequestLogMessage, setBlockLevel, setFilterInstanceName, inspectVariable, inspectsFormScope, getLogLevel, getRequestLogMessage, getFirewall
 

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