public abstract class AbstractFetcher extends neo.nursery.AbstractNurseryService implements Fetcher
Fetcher
implementations should extend thisModifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
mLogger |
Constructor and Description |
---|
AbstractFetcher() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultContentTypes() |
List<String> |
getDefaultContentTypesAsList() |
int |
getDefaultMaxItem() |
neo.xredsys.api.ObjectLoader |
getObjectLoader() |
protected neo.xredsys.presentation.PresentationLoader |
getPresentationLoader() |
int |
getRelativeTimeInterval() |
protected Date[] |
resolveDateRange(SourceDefinition pSourceDefinition,
SourceSettings pSettings)
returns the date range(startDate and endDate) from pSettings if any of the specified in pSettings,
returns from the pSourceDefinitionOtherwise if specified, otherwise null
|
protected neo.xredsys.api.Publication |
resolvePublication(SourceDefinition pSourceDefinition,
ContextInfo pContextInfo)
Finds the publication specified in
pSourceDefinition , otherwise returns the publication in request scope |
protected neo.xredsys.api.Section |
resolveSection(SourceDefinition pSourceDefinition,
ContextInfo pContextInfo)
Finds the section specified in
pSourceDefinition , or returns the section in request scope if not specified. |
void |
setDefaultContentTypes(String pDefaultContentTypes) |
void |
setDefaultMaxItem(int pDefaultMaxItem) |
void |
setObjectLoader(neo.xredsys.api.ObjectLoader pObjectLoader) |
void |
setRelativeTimeInterval(int pRelativeTimeInterval) |
protected void |
startService() |
protected void |
stopService() |
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
protected void startService() throws IllegalStateException, IllegalArgumentException, Exception
startService
in class neo.nursery.AbstractNurseryService
IllegalStateException
IllegalArgumentException
Exception
protected void stopService() throws IllegalStateException, Exception
stopService
in class neo.nursery.AbstractNurseryService
IllegalStateException
Exception
protected neo.xredsys.api.Section resolveSection(SourceDefinition pSourceDefinition, ContextInfo pContextInfo)
pSourceDefinition
, or returns the section in request scope if not specified.
To find the specified section, it uses publication specified in pSourceDefinition
,
or the publication in request scope if not specifiedprotected neo.xredsys.api.Publication resolvePublication(SourceDefinition pSourceDefinition, ContextInfo pContextInfo)
pSourceDefinition
, otherwise returns the publication in request scopeprotected Date[] resolveDateRange(SourceDefinition pSourceDefinition, SourceSettings pSettings)
protected neo.xredsys.presentation.PresentationLoader getPresentationLoader()
public neo.xredsys.api.ObjectLoader getObjectLoader()
public void setObjectLoader(neo.xredsys.api.ObjectLoader pObjectLoader)
public int getDefaultMaxItem()
public void setDefaultMaxItem(int pDefaultMaxItem)
public String getDefaultContentTypes()
public void setDefaultContentTypes(String pDefaultContentTypes)
public int getRelativeTimeInterval()
public void setRelativeTimeInterval(int pRelativeTimeInterval)
© 1998- 2017 Escenic AS