|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.reading.AbstractReader
org.apache.cocoon.reading.ServiceableReader
org.apache.cocoon.reading.AxisRPCReader
public class AxisRPCReader
SOAP Reader
This reader accepts a SOAP Request, and generates the resultant response as output. Essentially, this reader allows you to serve SOAP requests from your Cocoon application.
Code originates from the Apache
AXIS project,
org.apache.axis.http.transport.AxisServlet.
AxisServlet authors:, Steve Loughran, Doug Davis| Field Summary |
|---|
| Fields inherited from class org.apache.cocoon.reading.ServiceableReader |
|---|
manager |
| Fields inherited from class org.apache.cocoon.reading.AbstractReader |
|---|
objectModel, out, parameters, resolver, source |
| Fields inherited from interface org.apache.cocoon.reading.Reader |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AxisRPCReader()
|
|
| Method Summary | |
|---|---|
void |
configure(Configuration config)
|
void |
dispose()
Dispose this reader. |
void |
generate()
Axis RPC Router generate method. |
protected int |
getHttpServletResponseStatus(org.apache.axis.AxisFault af)
Extract information from AxisFault and map it to a HTTP Status code. |
protected void |
processAxisFault(org.apache.axis.AxisFault fault)
routine called whenever an axis fault is caught; where they are logged and any other business. |
void |
service(ServiceManager manager)
|
void |
setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters parameters)
Axis RPC Router setup method. |
| Methods inherited from class org.apache.cocoon.reading.AbstractReader |
|---|
getLastModified, getMimeType, recycle, setOutputStream, shouldSetContentLength |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AxisRPCReader()
| Method Detail |
|---|
public void configure(Configuration config)
throws ConfigurationException
configure in interface ConfigurableConfigurationException
public void service(ServiceManager manager)
throws ServiceException
service in interface Serviceableservice in class ServiceableReaderServiceExceptionServiceable.service(org.apache.avalon.framework.service.ServiceManager)
public void setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters parameters)
throws ProcessingException,
IOException,
SAXException
setup method.
This method sets the reader up for use. Essentially it checks that its been invoked in a HTTP-POST environment, reads some optional configuration variables, and obtains several component references to be used later.
setup in interface SitemapModelComponentsetup in class AbstractReaderresolver - SourceResolver instanceobjectModel - request/response/context datasrc - source String instanceparameters - sitemap invocation time customization parameters
ProcessingException - if an error occurs
IOException - if an error occurs
SAXException - if an error occurs
public void generate()
throws IOException,
SAXException,
ProcessingException
generate method.
This method reads the SOAP request in from the input stream, invokes the requested method and sends the result back to the requestor
generate in interface ReaderIOException - if an IO error occurs
SAXException - if a SAX error occurs
ProcessingException - if a processing error occursprotected void processAxisFault(org.apache.axis.AxisFault fault)
fault - what went wrong.protected int getHttpServletResponseStatus(org.apache.axis.AxisFault af)
af - Axis Fault
public void dispose()
dispose in interface Disposable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||