| org.apache.cocoon.generation.AbstractGenerator org.apache.cocoon.generation.ServiceableGenerator org.apache.cocoon.generation.WebServiceProxyGenerator
WebServiceProxyGenerator | public class WebServiceProxyGenerator extends ServiceableGenerator (Code) | | The WebServiceProxyGenerator is intended to:
1) Allow easy syndication of dynamic interactive content as a natural extension of the currently popular static content syndication with RSS.
2) Allow transparent routing of web service request through GET, POST, SOAP-RPC and SOAP-DOC binding methods.
3) Allow almost full control through sitemap configuration.
4) Allow use of Cocoon components for content formatting, aggregation and styling through a tight integration with the Cocoon sitemap.
5) Require 0 (zero) lines of Java or other business logic code in most cases.
6) Be generic and flexible enough to allow custom extensions for advanced and non-typical uses.
7) Support sessions, authentication, http 1.1, https, request manipulation, redirects following, connection pooling, and others.
8) Use the Jakarta HttpClient library which provides many sophisticated features for HTTP connections.
9) (TBD) Use Axis for SOAP-RPC and SOAP-DOC bindings.
author: Ivelin Ivanov, June 30, 2002 author: Tony Collen, December 2, 2002 version: CVS $Id: WebServiceProxyGenerator.java 527282 2007-04-10 20:33:10Z joerg $ |
Method Summary | |
public byte[] | fetch() Forwards the request and returns the response. | public void | generate() Generate XML data. | protected HttpClient | getHttpClient() Create one per client session. | public void | recycle() Recycle this component. | public void | setup(SourceResolver resolver, Map objectModel, String src, Parameters par) |
fetch | public byte[] fetch() throws ProcessingException(Code) | | Forwards the request and returns the response.
The rest is probably out of date:
Will use a UrlGetMethod to benefit the cacheing mechanism
and intermediate proxy servers.
It is potentially possible that the size of the request
may grow beyond a certain limit for GET and it will require POST instead.
byte[] XML response |
recycle | public void recycle()(Code) | | Recycle this component.
All instance variables are set to null .
|
Fields inherited from org.apache.cocoon.generation.ServiceableGenerator | protected ServiceManager manager(Code)(Java Doc)
|
Methods inherited from org.apache.cocoon.generation.ServiceableGenerator | public void dispose()(Code)(Java Doc) public void service(ServiceManager manager) throws ServiceException(Code)(Java Doc)
|
|
|