magoffin.matt.ma2.web.service
Class AddMediaEndpoint

java.lang.Object
  extended by org.springframework.xml.transform.TransformerObjectSupport
      extended by org.springframework.ws.server.endpoint.AbstractSaxPayloadEndpoint
          extended by magoffin.matt.ma2.web.service.AddMediaEndpoint
All Implemented Interfaces:
org.springframework.ws.server.endpoint.PayloadEndpoint

public class AddMediaEndpoint
extends org.springframework.ws.server.endpoint.AbstractSaxPayloadEndpoint

Web service endpoint for adding media.

Uses SAX to handle potentially large amount of data encoded into the request.

Note that a BizContext must be available via BizContextUtil.getBizContext() prior to invoking this service, to pass the user authentication to the import.

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

Field Summary
 
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger
 
Constructor Summary
AddMediaEndpoint()
           
 
Method Summary
protected  org.xml.sax.ContentHandler createContentHandler()
           
 IOBiz getIoBiz()
           
 javax.xml.stream.XMLOutputFactory getOutputFactory()
           
protected  javax.xml.transform.Source getResponse(org.xml.sax.ContentHandler contentHandler)
           
 void setIoBiz(IOBiz ioBiz)
           
 void setOutputFactory(javax.xml.stream.XMLOutputFactory outputFactory)
           
 
Methods inherited from class org.springframework.ws.server.endpoint.AbstractSaxPayloadEndpoint
invoke
 
Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddMediaEndpoint

public AddMediaEndpoint()
Method Detail

createContentHandler

protected org.xml.sax.ContentHandler createContentHandler()
                                                   throws java.lang.Exception
Specified by:
createContentHandler in class org.springframework.ws.server.endpoint.AbstractSaxPayloadEndpoint
Throws:
java.lang.Exception

getResponse

protected javax.xml.transform.Source getResponse(org.xml.sax.ContentHandler contentHandler)
                                          throws java.lang.Exception
Specified by:
getResponse in class org.springframework.ws.server.endpoint.AbstractSaxPayloadEndpoint
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