|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectHttpServlet
com.facetmap.servlet.FacetMapServlet
You will probably have to extend this class to customize FacetMap to your own site. By default, FacetMapServlet creates a Map object that uses a SimpleResourceSpace for its resources. To populate the Map data, it creates a parser that expects to parse SimpleResource objects. If you are going to use a different type of Resource, you will have to change this behavior by overriding both the createNewMap() and populateMap() routines.
If you want to change the parser, but not the Resource type -- for example, you're parsing a binary data file -- then you just need to override the populateMap() method. This also applies if your input mechanism is not a parser at all but something else entirely.
By default, the Map is an instance of FilesystemMap. Override createNewMap() if you have a different FacetMap engine you'd like to use.
| Field Summary | |
protected java.lang.Exception |
configException
|
protected java.util.Properties |
configProps
Contains properties set in the properties file. |
protected boolean |
configured
|
protected ServletContext |
context
|
protected java.io.File |
docsDir
|
protected java.net.URL |
docsUrl
|
static java.lang.String |
FACETMAP_ATTR
|
protected SimpleResourceSpace |
simpleResourceSpace
|
protected TransformerPersister |
viewPersister
|
protected java.io.File |
workDir
|
| Constructor Summary | |
FacetMapServlet()
|
|
| Method Summary | |
static Map |
build(java.io.BufferedReader r,
Parser parser,
boolean update)
Deprecated. see above |
Map |
build(Parser parser,
boolean mapIsXml)
Deprecated. only used in FilesystemMapServlet, I believe, which is slated for destruction also. |
void |
configure()
|
com.facetmap.simple.logging.LogService |
createLogService(ServletContext context)
|
abstract Map |
createNewMap(ServletContext context)
Creates (by default) a parser that will parse a map containing SimpleResource-style resources. |
void |
doInit(ServletContext c)
|
boolean |
getBooleanParameter(java.lang.String paramName)
|
java.lang.Exception |
getConfigurationException()
|
int |
getIntParameter(java.lang.String paramName)
|
java.lang.String |
getParameter(java.lang.String paramName)
|
java.util.Enumeration |
getParameterNames()
|
java.net.URL |
getUrlForDocs(java.lang.String path)
|
TransformerPersister |
getViewPersister()
|
void |
init()
Wraps the initialization process so that the servlet container can call it on startup. |
boolean |
isConfigured()
|
static void |
preprocess(Map map)
Does any calculation that needs to be done before the map can be browsed. |
void |
readProps()
Populate configProps from file. |
void |
setParameter(java.lang.String paramName,
java.lang.String value)
|
void |
writeProps(java.lang.String info)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String FACETMAP_ATTR
protected ServletContext context
protected java.util.Properties configProps
protected SimpleResourceSpace simpleResourceSpace
protected java.io.File workDir
protected java.io.File docsDir
protected java.net.URL docsUrl
protected TransformerPersister viewPersister
protected boolean configured
protected java.lang.Exception configException
| Constructor Detail |
public FacetMapServlet()
| Method Detail |
public boolean isConfigured()
public java.lang.Exception getConfigurationException()
public abstract Map createNewMap(ServletContext context)
throws InternalException,
DataException,
java.io.IOException
mapIsPlaintext parameter.
InternalException
DataException
java.io.IOException
public com.facetmap.simple.logging.LogService createLogService(ServletContext context)
throws java.io.IOException
java.io.IOExceptionpublic TransformerPersister getViewPersister()
public void init()
throws ServletException
ServletException
public void doInit(ServletContext c)
throws java.io.IOException,
DataException,
InternalException
java.io.IOException
DataException
InternalException
public void configure()
throws java.io.IOException,
DataException,
InternalException
java.io.IOException
DataException
InternalExceptionpublic java.util.Enumeration getParameterNames()
public java.lang.String getParameter(java.lang.String paramName)
public void setParameter(java.lang.String paramName,
java.lang.String value)
public boolean getBooleanParameter(java.lang.String paramName)
public int getIntParameter(java.lang.String paramName)
throws DataException
DataException
public void readProps()
throws java.io.IOException
java.io.IOException
public void writeProps(java.lang.String info)
throws java.io.IOException
java.io.IOException
public Map build(Parser parser,
boolean mapIsXml)
throws InternalException,
DataException,
java.io.IOException
InternalException
DataException
java.io.IOException
public static Map build(java.io.BufferedReader r,
Parser parser,
boolean update)
throws InternalException,
DataException,
java.io.IOException
InternalException
DataException
java.io.IOException
public static void preprocess(Map map)
throws InternalException,
DataException,
java.io.IOException
InternalException
DataException
java.io.IOException
public java.net.URL getUrlForDocs(java.lang.String path)
throws java.net.MalformedURLException
java.net.MalformedURLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||