jeeves.server.local
Class LocalServiceRequest

java.lang.Object
  extended by jeeves.server.sources.ServiceRequest
      extended by jeeves.server.local.LocalServiceRequest

public class LocalServiceRequest
extends ServiceRequest

Represents a Jeeves local XML request (within JVM).

In normal operation Jeeves is invoked through HTTP (HttpServlet). For a LocalJeeves engine a LocalServiceRequest can be used to do direct Jeeves service dispatch.

Author:
Just van den Broecke - just@justobjects.nl

Nested Class Summary
 
Nested classes/interfaces inherited from class jeeves.server.sources.ServiceRequest
ServiceRequest.InputMethod, ServiceRequest.OutputMethod
 
Field Summary
 
Fields inherited from class jeeves.server.sources.ServiceRequest
address, debug, input, language, output, outStream, params, service, statusCode
 
Constructor Summary
LocalServiceRequest()
           
 
Method Summary
 void beginStream(String contentType, boolean cache)
          called when the system starts streaming data
 void beginStream(String contentType, int contentLength, String contentDisposition, boolean cache)
           
static LocalServiceRequest create(String url)
           
static LocalServiceRequest create(String url, org.jdom.Element params)
           
 void endStream()
          called when the system ends streaming data
 org.jdom.Element getResult()
           
 String getResultString()
           
 
Methods inherited from class jeeves.server.sources.ServiceRequest
getAddress, getHeaders, getInputMethod, getLanguage, getOutputMethod, getOutputStream, getParams, getService, hasDebug, setAddress, setDebug, setHeaders, setInputMethod, setLanguage, setOutputMethod, setOutputStream, setParams, setService, setStatusCode, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalServiceRequest

public LocalServiceRequest()
Method Detail

create

public static LocalServiceRequest create(String url)
                                  throws Exception
Throws:
Exception

create

public static LocalServiceRequest create(String url,
                                         org.jdom.Element params)
                                  throws Exception
Throws:
Exception

beginStream

public void beginStream(String contentType,
                        boolean cache)
Description copied from class: ServiceRequest
called when the system starts streaming data

Overrides:
beginStream in class ServiceRequest

beginStream

public void beginStream(String contentType,
                        int contentLength,
                        String contentDisposition,
                        boolean cache)
Overrides:
beginStream in class ServiceRequest

endStream

public void endStream()
               throws IOException
Description copied from class: ServiceRequest
called when the system ends streaming data

Overrides:
endStream in class ServiceRequest
Throws:
IOException

getResultString

public String getResultString()

getResult

public org.jdom.Element getResult()
                           throws IOException,
                                  org.jdom.JDOMException
Throws:
IOException
org.jdom.JDOMException


Copyright © 2003-2013. All Rights Reserved.