org.joseki.server.processors
Class ZeroArgProcessor

java.lang.Object
  extended byorg.joseki.server.processors.ProcessorCom
      extended byorg.joseki.server.processors.ZeroArgProcessor
All Implemented Interfaces:
Loadable, Processor
Direct Known Subclasses:
ClearModelProcessor, OptionsProcessor, PingProcessor

public abstract class ZeroArgProcessor
extends ProcessorCom

General template for any operation that takes no models (in the request body) as arguments - they can have parameters.

Version:
$Id: ZeroArgProcessor.java,v 1.6 2004/04/30 14:13:11 andy_seaborne Exp $
Author:
Andy Seaborne

Field Summary
 
Fields inherited from interface org.joseki.server.Processor
ARGS_ONE, ARGS_ZERO, ARGS_ZERO_OR_ONE
 
Constructor Summary
ZeroArgProcessor(java.lang.String n, int lockNeeded, int mutating)
           
 
Method Summary
 int argsNeeded()
          Return the number of argument models this operation expects in the input request.
 com.hp.hpl.jena.rdf.model.Model exec(Request request)
          Execute the operation.
abstract  com.hp.hpl.jena.rdf.model.Model execZeroArg(ModelSource target, Request request)
           
 
Methods inherited from class org.joseki.server.processors.ProcessorCom
init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.joseki.server.module.Loadable
getInterfaceURI
 

Constructor Detail

ZeroArgProcessor

public ZeroArgProcessor(java.lang.String n,
                        int lockNeeded,
                        int mutating)
Method Detail

argsNeeded

public int argsNeeded()
Description copied from interface: Processor
Return the number of argument models this operation expects in the input request. For HTTP, this is zero or one.


exec

public com.hp.hpl.jena.rdf.model.Model exec(Request request)
                                     throws ExecutionException
Description copied from interface: Processor
Execute the operation.

Returns:
Model Should not be null.
Throws:
ExecutionException
See Also:
Processor.exec(Request)

execZeroArg

public abstract com.hp.hpl.jena.rdf.model.Model execZeroArg(ModelSource target,
                                                            Request request)
                                                     throws com.hp.hpl.jena.rdf.model.RDFException,
                                                            ExecutionException
Throws:
com.hp.hpl.jena.rdf.model.RDFException
ExecutionException


Copyright © 2002 Hewlett-Packard. All Rights Reserved.