Class ProxyFilterService

java.lang.Object
org.exoplatform.web.security.proxy.ProxyFilterService

public class ProxyFilterService extends Object
The proxy filter service is used for filtering http access when it is performed by GateIn. The following rules applies to the filtering:
  • Same host URI grants access
  • A black list match of the host denies access
  • A white list match of the host grants access
  • Access is denied
The service is configured by
  • a white-list parameter that specifies a list of white list rules
  • a black-list parameter that specifies a list of black list rules
Rules are trimmed and the wildcard character can be used to match any number of character.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProxyFilterService(org.exoplatform.container.xml.InitParams params)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(jakarta.servlet.http.HttpServletRequest request, org.exoplatform.container.PortalContainer container, URI remoteURI)
    Returns true if access to a remote URI should be granted.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProxyFilterService

      public ProxyFilterService(org.exoplatform.container.xml.InitParams params)
  • Method Details

    • accept

      public boolean accept(jakarta.servlet.http.HttpServletRequest request, org.exoplatform.container.PortalContainer container, URI remoteURI)
      Returns true if access to a remote URI should be granted.
      Parameters:
      request - the servlet request doing the request
      container - the portal container associated with the request
      remoteURI - the remote URI to check
      Returns:
      the access to the remote URI