<application/>

A Thinkmap Server Application.
Implemented by:
thinkmap.server.ThinkmapServerApplication

Simple Attributes

accessControlAllowCredentials

description:

type: boolean

required: No

accessControlAllowOrigin

description:

type: String

required: No

caching

description: Set whether or not this caches responses. If caching is on, the servlet will send a stored response if it matches a previous request.

type: boolean

required: No


default: False
defaultStreamFormat

description: Sets the default stream format for this wrapper. The argument must be the name of a subclass of thinkmap.client.datasource.stream.IStreamFormat Formats are normally negotiated between the client and the server, and the default is only used as a last resort if the server cannot negotiate a protocol. The default format is the BinaryStreamFormat.

type: String

required: No

keepStatistics

description: Set to true if this DataSourceWrapper should retain statistics for the DataSource it contains.

type: boolean

required: No


default: False
searchHistory

description: Sets the number of searches that this datasource will retain in it's statistics. This is useful to see a history of what people are searching for. The default is 0.

type: int

required: No


default: 0
sendServletAttributes

description: Set this to true if your datasource needs to get a reference to the Servlet or the ServletRequest. If this is set to true, the datasource will always get passed two attributes, "Servlet" which will be a reference to the DataSourceServlet and "Servlet.request", which is a reference to the current HttpRequest that is serving the datasource. This option is "false" by default, as it can introduce problems if the datasource being served tries to serialize the attributes (as the RemoteDataSource does).

type: boolean

required: No


default: False

Complex Attributes

<dataSource/>

description: The data source used by this application

type: thinkmap.datasource.IDataSource

required: No


Valid Children
<composite/>
<database/>
<flatfile/>
<remote/>
<local/>

Children

<index/>The <index> tag is used to add a full text index to a Thinkmap datasource.

Simple Attributes

dateResolution

description:

type: int

required: No

indexId

description: Sets the "id" of this index. Indicies that have the same indexroot and same id will be shared between datasources. This allows you to share a full-text index between multiple Thinkmap Server ".tas" files. The default is null, which means that the index id will be constructed automatically from the URI of the enclosing ".tas" file.

type: String

required: No

indexInterval

description: Set the indexing interval using a "cron-like" specification which is a number of fields separated by whitespace. The default is null, which means that re-indexing must be triggered manually.

Here is the format of the fields:

field allowed values
second 0-59
minute 0-59
hour 0-23
day of month 1-31
month 0-11 (or names, see below)
day of week 0-6 (0 is Sun, or use names)

A field may be an asterisk (*), which always stands for "first-last".

Ranges of numbers are allowed. Ranges are two numbers separated with a hyphen. The specified range is inclu- sive. For example, 8-11 for an ``hours'' entry specifies execution at hours 8, 9, 10 and 11.

Lists are allowed. A list is a set of numbers (or ranges) separated by commas. Examples: "1,2,5,9", "0-4,8-12".

Step values can be used in conjunction with ranges. Fol- lowing a range with "/#" specifies skips of the number's value through the range. For example, ``0-23/2'' can be used in the hours field to specify execution every other hour (the alternative is to use "0,2,4,6,8,10,12,14,16,18,20,22"). Steps are also permitted after an asterisk, so if you want to say "every two hours", just use a "/2" after an "*".

Names can also be used for the "month" and "day of week" fields. Use the first three letters of the particular day or month (case doesn't matter).

Examples:

every five minutes after midnight, every day:
"0 5 0 * * *"
2:15pm on the first of every month:
"0 15 14 1 * *"
at 10pm on weekdays:
"0 0 22 * * mon-fri"
at 5 minutes after 4am every sunday
"0 5 4 * * sun"



type: String

required: No

indexOnStart

description: If set to true, the datasource will be indexed on startup if no full-text index exists.

type: boolean

required: No

indexRoot

description: Sets the full path to the directory that will be used to store this full text index.

type: java.io.File

required: No

stopWords

description: Set the list of words that the full-text index should ignore. The default list is "a,an,and,are,as,at,be,but,by,for,if,in,into,is,it,no,not,of,on,or,such,that,the,their,then,there,these,they,this,to,was,will,with"

type: String

required: No