magoffin.matt.ma2.web.service
Class AddMediaMessageEndpoint

java.lang.Object
  extended by magoffin.matt.ma2.web.service.AddMediaMessageEndpoint
All Implemented Interfaces:
org.springframework.ws.server.endpoint.MessageEndpoint

public class AddMediaMessageEndpoint
extends java.lang.Object
implements org.springframework.ws.server.endpoint.MessageEndpoint

Implementation of AddMediaRequest web service that uses SOAP attachments for the media data.

This works better than AddMediaEndpoint in the default configuration of Spring-WS, which does not seem to handle large text element content well (as in, large base64 encoded element content).

Version:
$Revision: 89 $ $Date: 2007-12-04 17:59:26 +1300 (Tue, 04 Dec 2007) $
Author:
matt

Constructor Summary
AddMediaMessageEndpoint()
           
 
Method Summary
 IOBiz getIoBiz()
           
 javax.xml.stream.XMLOutputFactory getOutputFactory()
           
 XmlHelper getXmlHelper()
           
 void invoke(org.springframework.ws.context.MessageContext messageContext)
           
 void setIoBiz(IOBiz ioBiz)
           
 void setOutputFactory(javax.xml.stream.XMLOutputFactory outputFactory)
           
 void setXmlHelper(XmlHelper xmlHelper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddMediaMessageEndpoint

public AddMediaMessageEndpoint()
Method Detail

invoke

public void invoke(org.springframework.ws.context.MessageContext messageContext)
            throws java.lang.Exception
Specified by:
invoke in interface org.springframework.ws.server.endpoint.MessageEndpoint
Throws:
java.lang.Exception

getIoBiz

public IOBiz getIoBiz()
Returns:
the ioBiz

setIoBiz

public void setIoBiz(IOBiz ioBiz)
Parameters:
ioBiz - the ioBiz to set

getOutputFactory

public javax.xml.stream.XMLOutputFactory getOutputFactory()
Returns:
the outputFactory

setOutputFactory

public void setOutputFactory(javax.xml.stream.XMLOutputFactory outputFactory)
Parameters:
outputFactory - the outputFactory to set

getXmlHelper

public XmlHelper getXmlHelper()
Returns:
the xmlHelper

setXmlHelper

public void setXmlHelper(XmlHelper xmlHelper)
Parameters:
xmlHelper - the xmlHelper to set