org.openspml.v2.examples.nvpstore.psp
Class NVPObjectStoreExecutor
java.lang.Object
org.openspml.v2.examples.nvpstore.psp.NVPObjectStoreExecutor
- All Implemented Interfaces:
- SPMLExecutor
- public class NVPObjectStoreExecutor
- extends java.lang.Object
- implements SPMLExecutor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
NVPObjectStoreExecutor
public NVPObjectStoreExecutor()
NVPObjectStoreExecutor
public NVPObjectStoreExecutor(java.lang.String schemaFileURL,
java.lang.String baseDir)
throws Spml2Exception
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:
- "schemaFile" - the location of the file that defines the schema for this example
- "baseDir" - this names the directory in which you want to save files for the NVPObjectStore
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.