public static class RestResourceRegistry.EndpointSettings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
mAccessControllerId
The map of url path to access control id on the endpoint.
|
protected boolean |
mAuthRequired
Whether access to the endpoint requires the user to be authenticated.
|
protected boolean |
mCachingEnabled
Whether caching is enabled on the endpoint.
|
protected boolean |
mChangeTrackingDisabled
Whether the endpoint has change tracking disabled.
|
protected java.util.Set<java.lang.String> |
mConsumes
Set of media types this endpoint consumes
|
protected int |
mFilterDepth
The filter depth, -1 indicates to limit.
|
protected java.lang.String |
mFilterId
The id of the filter used with the endpoint.
|
protected boolean |
mHasDoc
Not currently used.
|
protected boolean |
mHasJAXRSAnnotatedFields
Whether the endpoint has JAXRS annotations.
|
protected boolean |
mHasPathParams
Whether the URL of the endpoint has params.
|
protected java.lang.String |
mHttpMethod
The http method of the endpoint.
|
protected boolean |
mHttpsRequired
Whether access to the endpoint requires https.
|
protected java.lang.String |
mId
The id of the the endpoint.
|
protected java.lang.String |
mLinkRelation
The link relation for the endpoint.
|
protected java.lang.String |
mLocaleHint
The locale hint of the the endpoint.
|
protected atg.service.jaxrs.RestLockService.LockType |
mLockType
Requires lock read or write?
|
protected java.lang.reflect.Method |
mMethodObject
The actual endpoint method in the endpoint class.
|
protected java.lang.String |
mPath
The path for the endpoint as returned via
RestResourceRegistry.getMethodPath(Method) . |
protected java.lang.String |
mPostActionMethod
Method name of a post action to be called after the
endpoint is invoked.
|
protected java.lang.String |
mPreActionMethod
Method name of a pre action to be called before the
endpoint is invoked.
|
protected boolean |
mPrivate
Whether the endpoint is private.
|
protected java.util.Set<java.lang.String> |
mProduces
Set of media types this endpoint produces
|
protected java.lang.String |
mRequestType
The content type the endpoint consumes.
|
protected RestResourceRegistry.ResourceSettings |
mResourceSettings
Resource settings that this endpoint belongs to.
|
protected java.lang.String |
mResourceURL
The URL of the resource that the endpoint is part of.
|
protected java.lang.String |
mResponseType
The content type the endpoint produces.
|
protected boolean |
mSingular
Whether the endpoint resource type is singular.
|
protected java.util.Map<java.lang.String,java.lang.String> |
mTemplatePaths
The map of all absolute template paths that lead to this endpoint,
e.g.
|
protected boolean |
mTransactional
Whether the endpoint is transactional.
|
protected boolean |
mUpdateTarget
Whether the endpoint creates and/or updates a target
bean/repository item during input validation
|
protected java.lang.String |
mUrl |
protected boolean |
mValidatedByFramework
Whether validation of endpoint input
is validated by the framework
|
protected java.lang.String |
mValidatorId
The id of the validator used with the endpoint.
|
Constructor and Description |
---|
EndpointSettings(RestResourceRegistry.ResourceSettings pResourceSettings,
java.lang.String pId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAccessControllerId(java.lang.String pKey,
java.lang.String pAccessControllerId)
Adds a map of url path to access controller id on the endpoint.
|
java.util.Map<java.lang.String,java.lang.String> |
getAccessControllerId()
Gets the map of access controller ids for the endpoint.
|
boolean |
getCachingEnabled()
Gets whether caching is enabled on the endpoint.
|
java.util.Set<java.lang.String> |
getConsumes()
Getter for the media types this endpoint consumes.
|
int |
getFilterDepth()
Gets the filter depth, -1 indicates to limit.
|
java.lang.String |
getFilterId()
Gets the id of the filter used with the endpoint.
|
java.lang.String |
getHttpMethod()
Gets the http method of the endpoint.
|
java.lang.String |
getId()
Gets the id of the the endpoint.
|
java.lang.String |
getLinkRelation()
Gets the link relation for the endpoint.
|
java.lang.String |
getLocaleHint()
Gets the locale hint of the the endpoint.
|
atg.service.jaxrs.RestLockService.LockType |
getLockType()
Returns the Lock Type.
|
java.lang.reflect.Method |
getMethodObject()
Gets the actual endpoint method in the endpoint class.
|
java.lang.String |
getPath()
Gets the path for the endpoint.
|
java.lang.String |
getPostActionMethod()
Returns the name of the post action method for this endpoint.
|
java.lang.String |
getPreActionMethod()
Returns the name of the pre action method for this endpoint.
|
java.util.Set<java.lang.String> |
getProduces()
Getter for the media types this endpoint produces.
|
java.lang.String |
getRequestType()
Gets the content type the endpoint consumes.
|
RestResourceRegistry.ResourceSettings |
getResourceSettings()
Get the Resource settings that this endpoint belongs to.
|
java.lang.String |
getResourceURI()
Gets the URI of the resource that the endpoint is part of.
|
java.lang.String |
getResourceURL()
Gets the URL of the resource that the endpoint is part of.
|
java.lang.String |
getResponseType()
Gets the content type the endpoint produces.
|
java.util.Map<java.lang.String,java.lang.String> |
getTemplatePaths() |
java.lang.String |
getUrl() |
java.lang.String |
getValidatorId()
Gets the id of the validator used with the endpoint.
|
boolean |
isAuthRequired()
Gets whether access to the endpoint requires the user to be authenticated.
|
boolean |
isChangeTrackingDisabled()
Gets whether the endpoint has change tracking disabled
|
boolean |
isHasDoc()
Gets the 'has documentation' flag.
|
boolean |
isHasJAXRSAnnotatedFields()
Gets whether the endpoint has JAXRS annotations.
|
boolean |
isHasPathParams()
Gets whether the URL of the endpoint has params.
|
boolean |
isHttpsRequired()
Gets whether access to the endpoint requires https.
|
boolean |
isPrivate()
Gets whether the endpoint is private.
|
boolean |
isSingular()
Gets whether the endpoint resource type is singular.
|
boolean |
isTransactional()
Gets whether the endpoint is transactional.
|
boolean |
isUpdateTarget()
Gets whether the endpoint creates and/or updates a target
bean/repository item during input validation
|
boolean |
isUseImportableResourceLock()
Gets whether the endpoint uses importable resource locking.
|
boolean |
isUseOptimisticLock()
Gets whether the endpoint uses optimistic locking.
|
boolean |
isValidatedByFramework()
Gets whether validation of endpoint input
is validated by the framework
|
void |
setAuthRequired(boolean pAuthRequired)
Set whether access to the endpoint requires the user to be authenticated.
|
protected void |
setCachingEnabled(boolean pCachingEnabled)
Sets whether caching is enabled on the endpoint.
|
protected void |
setChangeTrackingDisabled(boolean pChangeTrackingDisabled)
Sets whether the endpoint has change tracking disabled
|
protected void |
setConsumes(java.util.Set<java.lang.String> pConsumes)
Setter for the media types this endpoint consumes.
|
protected void |
setFilterDepth(int pFilterDepth)
Sets the filter depth, -1 indicates to limit.
|
protected void |
setFilterId(java.lang.String pFilterId)
Sets the id of the filter used with the endpoint.
|
void |
setHasDoc(boolean pHasDoc)
Sets the 'has documentation' flag.
|
protected void |
setHasJAXRSAnnotatedFields(boolean pHasJAXRSAnnotatedFields)
Sets whether the endpoint has JAXRS annotations.
|
protected void |
setHasPathParams(boolean pHasPathParams)
Sets whether the URL of the endpoint has params.
|
protected void |
setHttpMethod(java.lang.String pHttpMethod)
Set the http method of the endpoint.
|
void |
setHttpsRequired(boolean pHttpsRequired)
Sets whether access to the endpoint requires https.
|
protected void |
setId(java.lang.String pId)
Set the id of the the endpoint.
|
protected void |
setLinkRelation(java.lang.String pLinkRelation)
Sets the link relation for the endpoint.
|
void |
setLocaleHint(java.lang.String pLocaleHint)
Set the locale hint of the the endpoint.
|
protected void |
setLockType(atg.service.jaxrs.RestLockService.LockType pLockType)
Sets the lock type.
|
protected void |
setMethodObject(java.lang.reflect.Method pMethodObject)
Sets the actual endpoint method in the endpoint class.
|
protected void |
setPath(java.lang.String pPath)
Sets the path for the endpoint.
|
protected void |
setPostActionMethod(java.lang.String pPostActionMethod)
Sets the name of the post action method for this endpoint.
|
protected void |
setPreActionMethod(java.lang.String pPreActionMethod)
Sets the name of the pre action method for this endpoint.
|
protected void |
setPrivate(boolean pPrivate)
Sets whether the endpoint is private.
|
protected void |
setProduces(java.util.Set<java.lang.String> pProduces)
Setter for the media types this endpoint produces.
|
protected void |
setRequestType(java.lang.String pRequestType)
Sets the content type the endpoint consumes.
|
protected void |
setResourceSettings(RestResourceRegistry.ResourceSettings pResourceSettings)
Set the Resource settings that this endpoint belongs to.
|
void |
setResourceURI(java.lang.String pResourceURI)
Sets the URL of the resource that the endpoint is part of.
|
protected void |
setResourceURL(java.lang.String pResourceURL)
Sets the URL of the resource that the endpoint is part of.
|
protected void |
setResponseType(java.lang.String pResponseType)
Sets the content type the endpoint produces.
|
protected void |
setSingular(boolean pSingular)
Sets whether the endpoint resource type is singular.
|
protected void |
setTemplatePaths(java.util.Map<java.lang.String,java.lang.String> pTemplatePaths) |
protected void |
setTransactional(boolean pTransactional)
Sets whether the endpoint is transactional.
|
protected void |
setUpdateTarget(boolean pUpdateTarget)
Sets whether the endpoint creates and/or updates a target
bean/repository item during input validation
|
void |
setUrl(java.lang.String pUrl) |
void |
setUseImportableResourceLock(boolean pUseImportableResourceLock)
Sets whether the endpoint uses the importable resource lock.
|
void |
setUseOptimisticLock(boolean pUseOptimisticLock)
Sets whether the endpoint uses optimistic locking.
|
protected void |
setValidatedByFramework(boolean pValidatedByFramework)
Sets whether validation of endpoint input
is validated by the framework
|
protected void |
setValidatorId(java.lang.String pValidatorId)
Sets the id of the validator used with the endpoint.
|
java.lang.String |
toString() |
protected java.lang.String mId
protected RestResourceRegistry.ResourceSettings mResourceSettings
protected java.util.Map<java.lang.String,java.lang.String> mTemplatePaths
protected atg.service.jaxrs.RestLockService.LockType mLockType
protected boolean mTransactional
protected boolean mPrivate
protected int mFilterDepth
protected java.lang.String mValidatorId
protected java.lang.String mFilterId
protected java.util.Set<java.lang.String> mConsumes
protected java.util.Set<java.lang.String> mProduces
protected java.lang.String mLocaleHint
protected boolean mHasPathParams
protected java.lang.String mPath
RestResourceRegistry.getMethodPath(Method)
.
The path is relative to the containing resource and may be a template, e.g. {itemId}protected boolean mAuthRequired
protected boolean mHttpsRequired
protected java.lang.String mHttpMethod
protected boolean mSingular
protected java.lang.reflect.Method mMethodObject
protected java.util.Map<java.lang.String,java.lang.String> mAccessControllerId
protected boolean mHasDoc
protected java.lang.String mRequestType
protected java.lang.String mResponseType
protected boolean mCachingEnabled
protected boolean mHasJAXRSAnnotatedFields
protected java.lang.String mLinkRelation
protected java.lang.String mResourceURL
protected boolean mChangeTrackingDisabled
protected boolean mUpdateTarget
protected boolean mValidatedByFramework
protected java.lang.String mPreActionMethod
protected java.lang.String mPostActionMethod
protected java.lang.String mUrl
public EndpointSettings(RestResourceRegistry.ResourceSettings pResourceSettings, java.lang.String pId)
protected void setId(java.lang.String pId)
pId
- The id of the the endpoint.public java.lang.String getId()
public RestResourceRegistry.ResourceSettings getResourceSettings()
protected void setResourceSettings(RestResourceRegistry.ResourceSettings pResourceSettings)
pResourceSettings
- the Resource settings that this endpoint belongs to.public java.util.Map<java.lang.String,java.lang.String> getTemplatePaths()
protected void setTemplatePaths(java.util.Map<java.lang.String,java.lang.String> pTemplatePaths)
public java.lang.String getUrl()
public void setUrl(java.lang.String pUrl)
protected void setLockType(atg.service.jaxrs.RestLockService.LockType pLockType)
pLockType
- The lock type.public atg.service.jaxrs.RestLockService.LockType getLockType()
protected void setTransactional(boolean pTransactional)
pTransactional
- Whether the endpoint is transactional.public boolean isTransactional()
protected void setPrivate(boolean pPrivate)
pPrivate
- Whether the endpoint is private.public boolean isPrivate()
protected void setFilterDepth(int pFilterDepth)
pFilterDepth
- the filter depth, -1 indicates to limit.public int getFilterDepth()
protected void setValidatorId(java.lang.String pValidatorId)
pValidatorId
- The id of the validator used with the endpoint.public java.lang.String getValidatorId()
protected void setFilterId(java.lang.String pFilterId)
pFilterId
- The id of the filter used with the endpoint.public java.lang.String getFilterId()
protected void setConsumes(java.util.Set<java.lang.String> pConsumes)
pConsumes
- Set of string media typespublic java.util.Set<java.lang.String> getConsumes()
protected void setProduces(java.util.Set<java.lang.String> pProduces)
pProduces
- Set of string media typespublic java.util.Set<java.lang.String> getProduces()
public void setLocaleHint(java.lang.String pLocaleHint)
pLocaleHint
- The locale hint of the the endpoint.public java.lang.String getLocaleHint()
protected void setPath(java.lang.String pPath)
pPath
- The path for the endpoint.public java.lang.String getPath()
protected void setHasPathParams(boolean pHasPathParams)
pHasPathParams
- Whether the URL of the endpoint has params.public boolean isHasPathParams()
public void setAuthRequired(boolean pAuthRequired)
pAuthRequired
- Whether access to the endpoint requires the user to be authenticated.public boolean isAuthRequired()
public void setHttpsRequired(boolean pHttpsRequired)
pHttpsRequired
- Whether access to the endpoint requires https.public boolean isHttpsRequired()
protected void setHttpMethod(java.lang.String pHttpMethod)
pHttpMethod
- The http method of the endpoint.public java.lang.String getHttpMethod()
protected void setSingular(boolean pSingular)
pSingular
- Whether the endpoint resource type is singular.public boolean isSingular()
public void setUseOptimisticLock(boolean pUseOptimisticLock)
pUseOptimisticLock
- Whether the endpoint uses optimistic locking.public boolean isUseOptimisticLock()
public void setUseImportableResourceLock(boolean pUseImportableResourceLock)
pUseOptimisticLock
- Whether the endpoint
uses the importable resource lock.public boolean isUseImportableResourceLock()
protected void setMethodObject(java.lang.reflect.Method pMethodObject)
pMethodObject
- The actual endpoint method in the endpoint class.public java.lang.reflect.Method getMethodObject()
public void addAccessControllerId(java.lang.String pKey, java.lang.String pAccessControllerId)
pKey
- the url path for this access control idpAccessControllerId
- The access controller id on the endpoint.public java.util.Map<java.lang.String,java.lang.String> getAccessControllerId()
public void setHasDoc(boolean pHasDoc)
pHasDoc
- The 'has documentation' flag.public boolean isHasDoc()
protected void setRequestType(java.lang.String pRequestType)
pRequestType
- The content type the endpoint consumes.public java.lang.String getRequestType()
protected void setResponseType(java.lang.String pResponseType)
pResponseType
- The content type the endpoint produces.public java.lang.String getResponseType()
protected void setCachingEnabled(boolean pCachingEnabled)
pCachingEnabled
- Whether caching is enabled on the endpoint.public boolean getCachingEnabled()
protected void setHasJAXRSAnnotatedFields(boolean pHasJAXRSAnnotatedFields)
pHasJAXRSAnnotatedFields
- Whether the endpoint has JAXRS annotations.public boolean isHasJAXRSAnnotatedFields()
protected void setLinkRelation(java.lang.String pLinkRelation)
pLinkRelation
- The link relation for the endpoint.public java.lang.String getLinkRelation()
protected void setResourceURL(java.lang.String pResourceURL)
pResourceURL
- The URL of the resource that the endpoint is part of.public java.lang.String getResourceURL()
public void setResourceURI(java.lang.String pResourceURI)
pResourceURI
- The URI of the resource that the endpoint is part of.public java.lang.String getResourceURI()
public boolean isChangeTrackingDisabled()
protected void setChangeTrackingDisabled(boolean pChangeTrackingDisabled)
pChangeTrackingDisabled
- - whether the endpoint has change tracking disabledpublic boolean isUpdateTarget()
protected void setUpdateTarget(boolean pUpdateTarget)
pUpdateTarget
- - whether the endpoint creates and/or updates a target
bean/repository item during input validationpublic boolean isValidatedByFramework()
protected void setValidatedByFramework(boolean pValidatedByFramework)
pValidatedByFramework
- - whether validation of endpoint input
is validated by the frameworkpublic java.lang.String getPreActionMethod()
protected void setPreActionMethod(java.lang.String pPreActionMethod)
pPreActionMethod
- the pre action method name to set.public java.lang.String getPostActionMethod()
protected void setPostActionMethod(java.lang.String pPostActionMethod)
pPostActionMethod
- the post action method name to set.public java.lang.String toString()
toString
in class java.lang.Object