org.codehaus.activesoap
Class RestService

java.lang.Object
  extended byorg.codehaus.activesoap.RestService
Direct Known Subclasses:
SoapService

public class RestService
extends Object

A pure RESTful service which processes inbound XML using some Handler instances without using the SOAP protocol.

Version:
$Revision: 1.12 $

Constructor Summary
RestService()
           
RestService(HandlerRegistry handlerRegistry)
           
 
Method Summary
 void addPolicy(Policy policy)
           
 MessageExchange createMessageExchange(Reader request, Writer response)
          Creates a new MessageExchange from an input and output stream
 MessageExchange createMessageExchange(XMLStreamReader in, XMLStreamWriter out)
          Creates a new MessageExchange from an input and output stream
 HandlerRegistry getHandlerRegistry()
           
 Handler getRootHandler()
           
 XMLStreamFactory getStreamFactory()
           
 void invoke(MessageExchange exchange)
          Performs a in invocation using the given message exchange
 void invoke(Reader request, Writer response)
          Performs a SOAP RPC operation, returning the response
 void invoke(XMLStreamReader in, XMLStreamWriter out)
          Performs a SOAP RPC operation, returning the response
 boolean isRepairingNamespace()
           
 void removePolicy(Policy policy)
           
 void setRepairingNamespace(boolean flag)
           
 void setRootHandler(Handler rootHandler)
           
 void setStreamFactory(XMLStreamFactory streamFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestService

public RestService()

RestService

public RestService(HandlerRegistry handlerRegistry)
Method Detail

createMessageExchange

public MessageExchange createMessageExchange(XMLStreamReader in,
                                             XMLStreamWriter out)
Creates a new MessageExchange from an input and output stream


createMessageExchange

public MessageExchange createMessageExchange(Reader request,
                                             Writer response)
                                      throws XMLStreamException
Creates a new MessageExchange from an input and output stream

Throws:
XMLStreamException

invoke

public void invoke(MessageExchange exchange)
            throws Exception
Performs a in invocation using the given message exchange

Throws:
Exception

invoke

public void invoke(Reader request,
                   Writer response)
            throws Exception
Performs a SOAP RPC operation, returning the response

Throws:
Exception

invoke

public void invoke(XMLStreamReader in,
                   XMLStreamWriter out)
            throws Exception
Performs a SOAP RPC operation, returning the response

Throws:
Exception

addPolicy

public void addPolicy(Policy policy)

removePolicy

public void removePolicy(Policy policy)

getHandlerRegistry

public HandlerRegistry getHandlerRegistry()

getRootHandler

public Handler getRootHandler()

setRootHandler

public void setRootHandler(Handler rootHandler)

getStreamFactory

public XMLStreamFactory getStreamFactory()

setStreamFactory

public void setStreamFactory(XMLStreamFactory streamFactory)

isRepairingNamespace

public boolean isRepairingNamespace()

setRepairingNamespace

public void setRepairingNamespace(boolean flag)


Copyright © 2004-2007 LogicBlaze, Inc.. All Rights Reserved.