public class RestManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPKEY_ENABLE |
static java.lang.String |
PROPKEY_READACCESS_ENABLE |
static java.lang.String |
PROPKEY_READACCESS_IPFILTER |
static java.lang.String |
PROPKEY_WRITEACCESS_ENABLE |
static java.lang.String |
PROPKEY_WRITEACCESS_IPFILTER |
Modifier and Type | Method and Description |
---|---|
void |
addResourcesMap(Plugin plugin,
java.util.Map<java.lang.String,java.lang.Class<? extends JcmsRestResource>> resourcesMap) |
boolean |
checkReadAccessIP(java.lang.String ip)
Returns true if the given IP address is authorized for read for REST request.
|
boolean |
checkWriteAccessIP(java.lang.String ip)
Returns true if the given IP address is authorized for write for REST request.
|
java.util.Map<Plugin,java.util.Map<java.lang.String,java.lang.Class<? extends JcmsRestResource>>> |
getExtendedResourcesMap() |
static RestManager |
getInstance() |
void |
init()
Initialize the RestManager.
This method can be called multiple time during the lifetime of the site, for example on properties change. |
boolean |
isEnable() |
boolean |
isReadAccessEnable() |
boolean |
isWriteAccessEnable() |
public static final java.lang.String PROPKEY_ENABLE
public static final java.lang.String PROPKEY_READACCESS_ENABLE
public static final java.lang.String PROPKEY_READACCESS_IPFILTER
public static final java.lang.String PROPKEY_WRITEACCESS_ENABLE
public static final java.lang.String PROPKEY_WRITEACCESS_IPFILTER
public static final RestManager getInstance()
public void init()
public boolean checkReadAccessIP(java.lang.String ip)
ip
- the IP address to be checkedpublic boolean checkWriteAccessIP(java.lang.String ip)
ip
- the IP address to be checkedpublic boolean isEnable()
public boolean isReadAccessEnable()
public boolean isWriteAccessEnable()
public void addResourcesMap(Plugin plugin, java.util.Map<java.lang.String,java.lang.Class<? extends JcmsRestResource>> resourcesMap)
public java.util.Map<Plugin,java.util.Map<java.lang.String,java.lang.Class<? extends JcmsRestResource>>> getExtendedResourcesMap()
Copyright © 2001-2017 Jalios SA. All Rights Reserved.