Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.obinary.cms.admin
Class Listener  view Listener download Listener.java

java.lang.Object
  extended bycom.obinary.cms.admin.Listener

public class Listener
extends java.lang.Object

Listener could be used to check for the request source/types and match it with the allowed sources and types This is helpful in restricting any authoring or publishing from unwanted sources


Constructor Summary
Listener()
           
 
Method Summary
static boolean isAllowed(javax.servlet.http.HttpServletRequest req)
          weather current request have proper access of the method requested
private static boolean isIPAllowed(javax.servlet.http.HttpServletRequest req)
          weather IP is in the available listener list OR "*"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Listener

public Listener()
Method Detail

isAllowed

public static boolean isAllowed(javax.servlet.http.HttpServletRequest req)

weather current request have proper access of the method requested


isIPAllowed

private static boolean isIPAllowed(javax.servlet.http.HttpServletRequest req)

weather IP is in the available listener list OR "*"