org.ow2.weblab.service.normaliser.tika
Class TikaConfiguration

java.lang.Object
  extended by org.ow2.weblab.service.normaliser.tika.TikaConfiguration

public class TikaConfiguration
extends java.lang.Object

This class is just an holder for the configuration of the Tika Service.

Author:
WebLal IPCC Team
Date:
2011-12-01

Field Summary
static java.lang.String UNMAPPED_PROPERTIES_BASE_URI
          The default value for unmappedPropertiesBaseUri.
static java.lang.String UNMAPPED_PROPERTIES_PREFIX
          The default value for unmappedPropertiesPrefix.
static java.lang.Class<? extends WebLabHandlerDecorator> WEBLAB_HANDLER_DECORATOR
          The default weblabHandlerDecorator
 
Constructor Summary
TikaConfiguration()
          The constructor
 
Method Summary
 java.lang.String getDefaultLang()
           
 java.lang.String getPathToXmlConfigurationFile()
           
 java.lang.String getServiceUri()
           
 java.lang.String getUnmappedPropertiesBaseUri()
           
 java.lang.String getUnmappedPropertiesPrefix()
           
 java.lang.Class<? extends WebLabHandlerDecorator> getWebLabHandlerDecoratorClass()
           
 boolean isAddMetadata()
           
 boolean isAddUnmappedProperties()
           
 boolean isAnnotateDocumentWithLang()
           
 boolean isGenerateHtml()
           
 boolean isOverrideMetadata()
           
 boolean isRemoveTempContent()
           
 void setAddMetadata(boolean addMetadata)
           
 void setAddUnmappedProperties(boolean addUnmappedProperties)
           
 void setAnnotateDocumentWithLang(boolean annotateDocumentWithLang)
           
 void setDefaultLang(java.lang.String defaultLang)
           
 void setGenerateHtml(boolean generateHtml)
           
 void setOverrideMetadata(boolean overrideMetadata)
           
 void setPathToXmlConfigurationFile(java.lang.String pathToXmlConfigurationFile)
           
 void setRemoveTempContent(boolean removeTempContent)
           
 void setServiceUri(java.lang.String serviceUri)
           
 void setServiceUri(java.net.URI serviceUri)
           
 void setUnmappedPropertiesBaseUri(java.lang.String unmappedPropertiesBaseUri)
           
 void setUnmappedPropertiesPrefix(java.lang.String unmappedPropertiesPrefix)
           
 void setWebLabHandlerDecoratorClass(java.lang.Class<? extends WebLabHandlerDecorator> webLabHandlerDecoratorClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNMAPPED_PROPERTIES_BASE_URI

public static final java.lang.String UNMAPPED_PROPERTIES_BASE_URI
The default value for unmappedPropertiesBaseUri.

See Also:
Constant Field Values

UNMAPPED_PROPERTIES_PREFIX

public static final java.lang.String UNMAPPED_PROPERTIES_PREFIX
The default value for unmappedPropertiesPrefix.

See Also:
Constant Field Values

WEBLAB_HANDLER_DECORATOR

public static final java.lang.Class<? extends WebLabHandlerDecorator> WEBLAB_HANDLER_DECORATOR
The default weblabHandlerDecorator

Constructor Detail

TikaConfiguration

public TikaConfiguration()
The constructor

Method Detail

getPathToXmlConfigurationFile

public java.lang.String getPathToXmlConfigurationFile()
Returns:
the path to xml tika config file

setPathToXmlConfigurationFile

public void setPathToXmlConfigurationFile(java.lang.String pathToXmlConfigurationFile)
Parameters:
pathToXmlConfigurationFile - the path to xml tika config file

setServiceUri

public void setServiceUri(java.net.URI serviceUri)
Parameters:
serviceUri - the service URI (used to annotated the annotations)

getDefaultLang

public java.lang.String getDefaultLang()
Returns:
the defaultLang

getServiceUri

public java.lang.String getServiceUri()
Returns:
the serviceUri

getUnmappedPropertiesBaseUri

public java.lang.String getUnmappedPropertiesBaseUri()
Returns:
the unmappedPropertiesBaseUri

getUnmappedPropertiesPrefix

public java.lang.String getUnmappedPropertiesPrefix()
Returns:
the unmappedPropertiesPrefix

getWebLabHandlerDecoratorClass

public java.lang.Class<? extends WebLabHandlerDecorator> getWebLabHandlerDecoratorClass()
Returns:
the webLabHandlerDecoratorClass

isAddMetadata

public boolean isAddMetadata()
Returns:
the addMetadata

isAddUnmappedProperties

public boolean isAddUnmappedProperties()
Returns:
the addUnmappedProperties

isAnnotateDocumentWithLang

public boolean isAnnotateDocumentWithLang()
Returns:
the annotateDocumentWithLang

isGenerateHtml

public boolean isGenerateHtml()
Returns:
the generateHtml

isOverrideMetadata

public boolean isOverrideMetadata()
Returns:
the overrideMetadata

isRemoveTempContent

public boolean isRemoveTempContent()
Returns:
the removeTempContent

setAddMetadata

public void setAddMetadata(boolean addMetadata)
Parameters:
addMetadata - the addMetadata to set

setAddUnmappedProperties

public void setAddUnmappedProperties(boolean addUnmappedProperties)
Parameters:
addUnmappedProperties - the addUnmappedProperties to set

setAnnotateDocumentWithLang

public void setAnnotateDocumentWithLang(boolean annotateDocumentWithLang)
Parameters:
annotateDocumentWithLang - the annotateDocumentWithLang to set

setDefaultLang

public void setDefaultLang(java.lang.String defaultLang)
Parameters:
defaultLang - the defaultLang to set

setGenerateHtml

public void setGenerateHtml(boolean generateHtml)
Parameters:
generateHtml - the generateHtml to set

setOverrideMetadata

public void setOverrideMetadata(boolean overrideMetadata)
Parameters:
overrideMetadata - the overrideMetadata to set

setRemoveTempContent

public void setRemoveTempContent(boolean removeTempContent)
Parameters:
removeTempContent - the removeTempContent to set

setServiceUri

public void setServiceUri(java.lang.String serviceUri)
Parameters:
serviceUri - the serviceUri to set

setUnmappedPropertiesBaseUri

public void setUnmappedPropertiesBaseUri(java.lang.String unmappedPropertiesBaseUri)
Parameters:
unmappedPropertiesBaseUri - the unmappedPropertiesBaseUri to set

setUnmappedPropertiesPrefix

public void setUnmappedPropertiesPrefix(java.lang.String unmappedPropertiesPrefix)
Parameters:
unmappedPropertiesPrefix - the unmappedPropertiesPrefix to set

setWebLabHandlerDecoratorClass

public void setWebLabHandlerDecoratorClass(java.lang.Class<? extends WebLabHandlerDecorator> webLabHandlerDecoratorClass)
Parameters:
webLabHandlerDecoratorClass - the webLabHandlerDecoratorClass to set


Copyright © 2004-2012. All Rights Reserved.