TopoWeb Commons API

org.topoweb.xml
Interface DomProtocol

All Known Implementing Classes:
TcpDomProtocol

public interface DomProtocol

Interface for an XML protocol using the DOM. The request and response entities are represented by elements in DOM trees.

Implementation Note

Using the DOM is inherently inefficient. Treat implemenations as quick hacks to get XML network protocols up and running.

Author:
Babak Farhang

Method Summary
 org.w3c.dom.Element doProtocol(org.w3c.dom.Element request)
          Returns the response element for the specified request.
 

Method Detail

doProtocol

public org.w3c.dom.Element doProtocol(org.w3c.dom.Element request)
                               throws DomProtocolException
Returns the response element for the specified request.

Parameters:
request - the request element
Returns:
the response element
Throws:
DomProtocolException - if an error occurs while processing the request; application-specific errors are expected to be encoded in the returned response document

TopoWeb Commons API

Copyright (C) 2002 Babak Farhang

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.