org.jvnet.jax_ws_commons.spring
Class SpringMTOMFeature

java.lang.Object
  extended by org.jvnet.jax_ws_commons.spring.SpringMTOMFeature
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean

public class SpringMTOMFeature
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean

Configures MTOM feature.

Author:
Kohsuke Kawaguchi

Constructor Summary
SpringMTOMFeature()
           
 
Method Summary
 javax.xml.ws.soap.MTOMFeature getObject()
           
 java.lang.Class getObjectType()
           
 boolean isSingleton()
           
 void setEnabled(boolean enabled)
          enabled="false" can be specified to override the MTOM annotation on the source code.
 void setThreshold(int threshold)
          The size in bytes that binary data SHOULD be before being sent as an attachment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringMTOMFeature

public SpringMTOMFeature()
Method Detail

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

setEnabled

public void setEnabled(boolean enabled)
enabled="false" can be specified to override the MTOM annotation on the source code. Defaults to true.


setThreshold

public void setThreshold(int threshold)
The size in bytes that binary data SHOULD be before being sent as an attachment.


getObject

public javax.xml.ws.soap.MTOMFeature getObject()
                                        throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
java.lang.Exception

getObjectType

public java.lang.Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean


Copyright © 2008. All Rights Reserved.