|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.rest.RestManager
public class RestManager
Hold JCMS configuration of OpenAPI. RestResource may be added.
Field Summary | |
---|---|
static String |
PROPKEY_ENABLE
|
static String |
PROPKEY_READACCESS_ENABLE
|
static String |
PROPKEY_READACCESS_IPFILTER
|
static String |
PROPKEY_WRITEACCESS_ENABLE
|
static String |
PROPKEY_WRITEACCESS_IPFILTER
|
Method Summary | |
---|---|
void |
addResourcesMap(Plugin plugin,
Map<String,Class<? extends JcmsRestResource>> resourcesMap)
|
boolean |
checkReadAccessIP(String ip)
Returns true if the given IP address is authorized for read for REST request. |
boolean |
checkWriteAccessIP(String ip)
Returns true if the given IP address is authorized for write for REST request. |
Map<Plugin,Map<String,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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPKEY_ENABLE
public static final String PROPKEY_READACCESS_ENABLE
public static final String PROPKEY_READACCESS_IPFILTER
public static final String PROPKEY_WRITEACCESS_ENABLE
public static final String PROPKEY_WRITEACCESS_IPFILTER
Method Detail |
---|
public static final RestManager getInstance()
public void init()
public boolean checkReadAccessIP(String ip)
ip
- the IP address to be checked
public boolean checkWriteAccessIP(String ip)
ip
- the IP address to be checked
public boolean isEnable()
public boolean isReadAccessEnable()
public boolean isWriteAccessEnable()
public void addResourcesMap(Plugin plugin, Map<String,Class<? extends JcmsRestResource>> resourcesMap)
public Map<Plugin,Map<String,Class<? extends JcmsRestResource>>> getExtendedResourcesMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |