|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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 |
addResource(Class<? extends org.restlet.resource.Resource> resourceClass,
String uriTemplate)
|
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<String,Class<? extends org.restlet.resource.Resource>> |
getExtendedResourcesMap()
|
static RestManager |
getInstance()
|
void |
init()
Initialize the RestManager. |
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 addResource(Class<? extends org.restlet.resource.Resource> resourceClass, String uriTemplate)
public Map<String,Class<? extends org.restlet.resource.Resource>> getExtendedResourcesMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |