|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.server.ThinkmapServerApplication
public class ThinkmapServerApplication
A Thinkmap Server Application.
| Field Summary | |
|---|---|
protected HttpServlet |
servlet
|
protected String |
uri
|
| Constructor Summary | |
|---|---|
ThinkmapServerApplication()
|
|
| Method Summary | |
|---|---|
void |
addIndex(DataSourceIndex dsi)
|
void |
contextInit()
|
DataSourceIndex |
createIndex()
|
String |
getAccessControlAllowOrigin()
|
ThinkmapConfig |
getConfig()
|
IDataSource |
getDataSource()
|
IStreamFormat |
getDefaultStreamFormat()
|
DataSourceIndex |
getIndex()
|
boolean |
getKeepStatistics()
|
int |
getLogErrors()
Deprecated. this attribute is depricated and is no longer used. |
IDataSource |
getRoot()
|
int |
getSearchHistory()
Gets the number of searches that this datasource will retain. |
boolean |
getSendServletAttributes()
|
boolean |
getServeXML()
Deprecated. this attribute is depricated and is no longer used. |
StatisticsWrapper |
getStatistics()
Get the StatisticsWrapper, if statistics are being collected. |
URL |
getStyleSheetURL()
|
String |
getURI()
Returns the URI of this Server Application, once it has been initialized. |
boolean |
isAccessControlAllowCredentials()
|
boolean |
isCaching()
Determine if this caches responses. |
void |
setAccessControlAllowCredentials(boolean accessControlAllowCredentials)
|
void |
setAccessControlAllowOrigin(String accessControlAllowOrigin)
|
void |
setCaching(boolean b)
Set whether or not this caches responses. |
void |
setConfig(ThinkmapConfig config)
|
void |
setContext(IThinkmapContext context)
|
void |
setDataSource(IDataSource ds)
The data source used by this application |
void |
setDefaultStreamFormat(String formatName)
Sets the default stream format for this wrapper. |
void |
setKeepStatistics(boolean b)
Set to true if this DataSourceWrapper should retain statistics for the DataSource it contains. |
void |
setLogErrors(int i)
Deprecated. this attribute is depricated and is no longer used. |
void |
setSearchHistory(int i)
Sets the number of searches that this datasource will retain in it's statistics. |
void |
setSendServletAttributes(boolean b)
Set this to true if your datasource needs to get a reference to the Servlet or the ServletRequest. |
void |
setServeXML(boolean b)
Deprecated. this attribute is depricated and is no longer used. |
void |
setStyleSheet(URL url)
Deprecated. this attribute is depricated and is no longer used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HttpServlet servlet
protected String uri
| Constructor Detail |
|---|
public ThinkmapServerApplication()
| Method Detail |
|---|
public void setContext(IThinkmapContext context)
public void contextInit()
throws Exception
Exceptionpublic String getURI()
public StatisticsWrapper getStatistics()
public IDataSource getRoot()
public DataSourceIndex createIndex()
public void addIndex(DataSourceIndex dsi)
public void setStyleSheet(URL url)
url - this attribute is depricated and is no longer used.public URL getStyleSheetURL()
public void setLogErrors(int i)
i - this attribute is depricated and is no longer used.public int getLogErrors()
public void setServeXML(boolean b)
i - this attribute is depricated and is no longer used.public boolean getServeXML()
public void setSendServletAttributes(boolean b)
b - true true if your datasource needs to get a reference to the ServletRequestpublic boolean getSendServletAttributes()
public void setDefaultStreamFormat(String formatName)
throws InstantiationException,
IllegalAccessException,
ClassNotFoundException
formatName - the name of the format to register
InstantiationException - if there was a problem instantiating the IStreamFormat
IllegalAccessException - if there was a problem instantiating the IStreamFormat
ClassNotFoundException - if there was a problem finding the IStreamFormat classIStreamFormatpublic IStreamFormat getDefaultStreamFormat()
public void setKeepStatistics(boolean b)
b - true if this DataSourceWrapper should retain statistics.public boolean getKeepStatistics()
public void setSearchHistory(int i)
i - the number of search terms to retain.public int getSearchHistory()
public void setCaching(boolean b)
b - true if this should cache responsespublic boolean isCaching()
public IDataSource getDataSource()
public void setDataSource(IDataSource ds)
public void setConfig(ThinkmapConfig config)
public ThinkmapConfig getConfig()
public DataSourceIndex getIndex()
public void setAccessControlAllowOrigin(String accessControlAllowOrigin)
public String getAccessControlAllowOrigin()
public boolean isAccessControlAllowCredentials()
public void setAccessControlAllowCredentials(boolean accessControlAllowCredentials)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||