|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.Restlet
org.restlet.routing.Filter
fr.cnes.sitools.security.filter.SecurityFilter
public class SecurityFilter
Restlet Filter filtering on the ip address of the request It checks If the address is compatible with a specified intranet.
Field Summary |
---|
Fields inherited from class org.restlet.routing.Filter |
---|
CONTINUE, SKIP, STOP |
Constructor Summary | |
---|---|
SecurityFilter(org.restlet.Context context)
Constructor with context and a boolean to specify if ip needs to be filtered |
Method Summary | |
---|---|
SitoolsApplication |
getApplication()
Gets the application value |
SitoolsSettings |
getSettings()
Gets the settings value |
boolean |
isExtranet(org.restlet.Request request)
Check if the given request if from the extranet |
boolean |
isExtranet(java.lang.String ip)
Check if the given request if from the extranet |
boolean |
isIntranet(org.restlet.Request request)
Check if the given request if from the intranet |
boolean |
isIntranet(java.lang.String ip)
Check if the given request if from the intranet |
void |
setApplication(SitoolsApplication application)
Sets the value of application |
void |
setSettings(SitoolsSettings settings)
Sets the value of settings |
Methods inherited from class org.restlet.routing.Filter |
---|
getNext, handle, hasNext, setNext, setNext, start, stop |
Methods inherited from class org.restlet.Restlet |
---|
getAuthor, getContext, getDescription, getLogger, getName, getOwner, isStarted, isStopped, setAuthor, setContext, setDescription, setName, setOwner |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityFilter(org.restlet.Context context)
context
- the contextMethod Detail |
---|
public boolean isIntranet(org.restlet.Request request)
request
- the request
public boolean isIntranet(java.lang.String ip)
ip
- the ip address
public boolean isExtranet(org.restlet.Request request)
request
- the request
public boolean isExtranet(java.lang.String ip)
ip
- the ip address
public SitoolsSettings getSettings()
public void setSettings(SitoolsSettings settings)
settings
- the settings to setpublic SitoolsApplication getApplication()
public void setApplication(SitoolsApplication application)
application
- the application to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |