|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gentics.cr.RequestProcessor
com.gentics.cr.cms.CMSRequestProcessor
public abstract class CMSRequestProcessor
The Class CMSRequestProcessor.
![]() |
![]() |
Field Summary | |
---|---|
private static com.sun.jersey.api.client.WebResource |
base
Web Resource base object. |
private static String |
BINARY_OBJECT_TYPE
File object type. |
private com.sun.jersey.api.client.Client |
client
REST API Client. |
private static String |
CMS_BASE_URI_KEY
Config key for the base uri. |
private static String |
FOLDER_OBJECT_TYPE
Folder object type. |
protected static org.apache.log4j.Logger |
log
The logger. |
private static String |
OBJECT_PREFIX
Object prefix. |
private static String |
PAGE_OBJECT_TYPE
Page object type. |
private String |
restBaseUri
REST base uri. |
private int |
retryCount
Retry count. |
private static String |
RETRYCOUNT_KEY
The Constant RETRYCOUNT_KEY. |
Fields inherited from class com.gentics.cr.RequestProcessor |
---|
config, CONTENTCACHE_KEY, HIGHLIGHT_QUERY_KEY, LINKS_PATTERN, META_RESOLVABLE_KEY, plinkProc, resolvables |
Constructor Summary | |
---|---|
CMSRequestProcessor(com.gentics.cr.CRConfig config)
Creates a new instance of this requestProcessor. |
Method Summary | |
---|---|
protected com.gentics.cr.CRResolvableBean |
createCRResolvableBean(com.gentics.contentnode.rest.model.Folder folder,
String[] folderAttributeArray)
Create CRResolvableBean for the corresponding folder. |
void |
finalize()
|
private String |
getIdFromContentid(String contentid)
Extracts the id from a contentid. |
Collection<com.gentics.cr.CRResolvableBean> |
getObjects(com.gentics.cr.CRRequest request,
boolean doNavigation)
|
private Collection<com.gentics.cr.CRResolvableBean> |
getObjects(com.gentics.cr.CRRequest request,
boolean doNavigation,
int currentRetryNumber)
Gets the objects. |
abstract RESTAPISessionCredentialStore |
getSessionStore(com.gentics.cr.CRConfig config)
Fetches the credential store from the session. |
protected com.gentics.cr.CRResolvableBean |
loadFolder(String id,
boolean doNavigation)
Loads a folder object from the rest api. |
private com.gentics.cr.CRResolvableBean |
loadPage(String id)
Loads a page object from the rest api. |
Methods inherited from class com.gentics.cr.RequestProcessor |
---|
fillAttributes, fillAttributes, getBeanByURL, getContent, getContentByUrl, getFirstMatchingResolvable, getNavigation, getObjects, prefixHostRelativeLinks, replacePlinks, toCRResolvableBeanCollection, toCRResolvableBeanCollection, toResolvableCollection, toResolvableCollection |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger log
private static final String CMS_BASE_URI_KEY
private static final String RETRYCOUNT_KEY
private static final String FOLDER_OBJECT_TYPE
private static final String BINARY_OBJECT_TYPE
private static final String PAGE_OBJECT_TYPE
private static final String OBJECT_PREFIX
private String restBaseUri
private com.sun.jersey.api.client.Client client
private int retryCount
private static com.sun.jersey.api.client.WebResource base
Constructor Detail |
---|
public CMSRequestProcessor(com.gentics.cr.CRConfig config) throws com.gentics.cr.exceptions.CRException
config
- the config
com.gentics.cr.exceptions.CRException
- the cR exceptionMethod Detail |
---|
public Collection<com.gentics.cr.CRResolvableBean> getObjects(com.gentics.cr.CRRequest request, boolean doNavigation) throws com.gentics.cr.exceptions.CRException
getObjects
in class com.gentics.cr.RequestProcessor
com.gentics.cr.exceptions.CRException
private Collection<com.gentics.cr.CRResolvableBean> getObjects(com.gentics.cr.CRRequest request, boolean doNavigation, int currentRetryNumber) throws com.gentics.cr.exceptions.CRException
request
- the requestdoNavigation
- the do navigationcurrentRetryNumber
- the current retry number
com.gentics.cr.exceptions.CRException
- the cR exceptionprotected com.gentics.cr.CRResolvableBean loadFolder(String id, boolean doNavigation) throws CMSRESTAuthenticationRequiredException
id
- id of the folder
CMSRESTAuthenticationRequiredException
- the cMSREST authentication required exceptionprotected com.gentics.cr.CRResolvableBean createCRResolvableBean(com.gentics.contentnode.rest.model.Folder folder, String[] folderAttributeArray) throws CMSRESTAuthenticationRequiredException
folder
- Folder object.folderAttributeArray
- Array containing configured folder attributes.
CMSRESTAuthenticationRequiredException
private com.gentics.cr.CRResolvableBean loadPage(String id) throws CMSRESTAuthenticationRequiredException
id
- id of the page
CMSRESTAuthenticationRequiredException
- the cMSREST authentication required exceptionpublic void finalize()
finalize
in class com.gentics.cr.RequestProcessor
private String getIdFromContentid(String contentid)
contentid
- the contentid
public abstract RESTAPISessionCredentialStore getSessionStore(com.gentics.cr.CRConfig config)
config
- the config
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |