org.openspml.v2.examples.nvpstore.psp
Class NVPObjectStoreExecutor

java.lang.Object
  extended byorg.openspml.v2.examples.nvpstore.psp.NVPObjectStoreExecutor
All Implemented Interfaces:
SPMLExecutor

public class NVPObjectStoreExecutor
extends java.lang.Object
implements SPMLExecutor


Field Summary
static java.lang.String NVP_BASEDIR_TO_SAVE_FILES
           
static java.lang.String NVP_SCHEMA_FILE_URL
           
 
Constructor Summary
NVPObjectStoreExecutor()
           
NVPObjectStoreExecutor(java.lang.String schemaFileURL, java.lang.String baseDir)
           
 
Method Summary
protected  Response execute(AddRequest add)
           
protected  Response execute(DeleteRequest delete)
           
protected  Response execute(ListTargetsRequest request)
           
protected  Response execute(LookupRequest lookup)
           
protected  Response execute(ModifyRequest modify)
           
 Response execute(Request request)
          And away we go - we saw a request.
 java.lang.String getUniqueName()
          A unique name (per servlet) can be used to pass in arguments, for example
 void init(java.util.Map params)
          The Map of params come from, for example, web.xml.
protected  boolean isMultiValued(java.lang.String name, java.lang.String targetId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NVP_SCHEMA_FILE_URL

public static final java.lang.String NVP_SCHEMA_FILE_URL
See Also:
Constant Field Values

NVP_BASEDIR_TO_SAVE_FILES

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

NVPObjectStoreExecutor

public NVPObjectStoreExecutor()

NVPObjectStoreExecutor

public NVPObjectStoreExecutor(java.lang.String schemaFileURL,
                              java.lang.String baseDir)
                       throws Spml2Exception
Method Detail

isMultiValued

protected boolean isMultiValued(java.lang.String name,
                                java.lang.String targetId)

init

public void init(java.util.Map params)
          throws Spml2Exception
The Map of params come from, for example, web.xml. In the servlet config these would be init-params in a web.xml with names like:

 SpmlViaSoap.spmlExecutors.nvpos.<attrname>
 
The attrname is the 'key' of the param in the Map. These are the names we expect: Simple enough.

Specified by:
init in interface SPMLExecutor
Parameters:
params - The map of the parameters, which are named as above.
Throws:
Spml2Exception

getUniqueName

public java.lang.String getUniqueName()
Description copied from interface: SPMLExecutor
A unique name (per servlet) can be used to pass in arguments, for example

Specified by:
getUniqueName in interface SPMLExecutor

execute

public Response execute(Request request)
                 throws Spml2Exception
Description copied from interface: SPMLExecutor
And away we go - we saw a request.

Specified by:
execute in interface SPMLExecutor
Parameters:
request - The request to be executed.
Returns:
The response after handling the request.
Throws:
Spml2Exception

execute

protected Response execute(ListTargetsRequest request)
                    throws Spml2Exception
Throws:
Spml2Exception

execute

protected Response execute(AddRequest add)
                    throws Spml2Exception
Throws:
Spml2Exception

execute

protected Response execute(LookupRequest lookup)
                    throws Spml2Exception
Throws:
Spml2Exception

execute

protected Response execute(ModifyRequest modify)
                    throws Spml2Exception
Throws:
Spml2Exception

execute

protected Response execute(DeleteRequest delete)
                    throws Spml2Exception
Throws:
Spml2Exception


Copyright © Sun Microsystems, Inc. All Rights Reserved.