org.openxri.plugin.impl
Class SampleDataPlugin

java.lang.Object
  extended by org.openxri.config.impl.AbstractComponent
      extended by org.openxri.plugin.impl.SampleDataPlugin
All Implemented Interfaces:
java.io.Serializable, Component, Plugin

public class SampleDataPlugin
extends AbstractComponent
implements Plugin

A plugin that can load the store with some example data. The server will be able to resolve the following i-names: =example*name1 =example*name2

Author:
=peacekeeper
See Also:
Serialized Form

Field Summary
static java.lang.String LOAD_SAMPLE_DATA_PATH
           
 
Fields inherited from class org.openxri.config.impl.AbstractComponent
properties
 
Constructor Summary
SampleDataPlugin(java.util.Properties properties)
           
 
Method Summary
 void init()
          A server component is constructed by the ComponentRegistry by passing a Properties object to its constructor and then calling this init() method.
 boolean processCustomRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process a request that is not an XRI lookup
 void shutdown()
           
 
Methods inherited from class org.openxri.config.impl.AbstractComponent
getProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openxri.config.Component
getProperties
 

Field Detail

LOAD_SAMPLE_DATA_PATH

public static final java.lang.String LOAD_SAMPLE_DATA_PATH
See Also:
Constant Field Values
Constructor Detail

SampleDataPlugin

public SampleDataPlugin(java.util.Properties properties)
Method Detail

init

public void init()
Description copied from interface: Component
A server component is constructed by the ComponentRegistry by passing a Properties object to its constructor and then calling this init() method.

Specified by:
init in interface Component

processCustomRequest

public boolean processCustomRequest(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
                             throws java.io.IOException
Description copied from interface: Plugin
Process a request that is not an XRI lookup

Specified by:
processCustomRequest in interface Plugin
Returns:
True, if the plugin successfully handled the request.
Throws:
java.io.IOException

shutdown

public void shutdown()


Copyright © 2005-2012. All Rights Reserved.