org.jboss.soa.esb.actions.soap.wise
Class SmooksHandler
java.lang.Object
org.jboss.soa.esb.actions.soap.wise.SmooksHandler
- All Implemented Interfaces:
- javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>, javax.xml.ws.handler.soap.SOAPHandler<javax.xml.ws.handler.soap.SOAPMessageContext>
public class SmooksHandler
- extends java.lang.Object
- implements javax.xml.ws.handler.soap.SOAPHandler<javax.xml.ws.handler.soap.SOAPMessageContext>
A SOAPHandler extension. It apply smooks transformation on soap message.
Transformation can also use freemarker, using provided javaBeans map to get
values It can apply transformation only on inbound message, outbound ones or
both, depending on
- Author:
- Stefano Maestri, stefano.maestri@javalinux.it
- See Also:
setInBoundHandlingEnabled(boolean)
,
setOutBoundHandlingEnabled(boolean)
Constructor Summary |
SmooksHandler(java.lang.String resource,
java.util.Map beans)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SmooksHandler
public SmooksHandler(java.lang.String resource,
java.util.Map beans)
throws java.lang.IllegalArgumentException,
org.xml.sax.SAXException,
java.io.IOException,
LifecycleResourceException
- Parameters:
resource
- URI of smooks config filebeans
- used for smooks BeanAccessor
- Throws:
java.io.IOException
org.xml.sax.SAXException
java.lang.IllegalArgumentException
LifecycleResourceException
getHeaders
public java.util.Set getHeaders()
- Specified by:
getHeaders
in interface javax.xml.ws.handler.soap.SOAPHandler<javax.xml.ws.handler.soap.SOAPMessageContext>
close
public void close(javax.xml.ws.handler.MessageContext arg0)
- Specified by:
close
in interface javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>
handleFault
public boolean handleFault(javax.xml.ws.handler.soap.SOAPMessageContext arg0)
- Specified by:
handleFault
in interface javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>
handleMessage
public boolean handleMessage(javax.xml.ws.handler.soap.SOAPMessageContext smc)
- Specified by:
handleMessage
in interface javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>
isOutBoundHandlingEnabled
public boolean isOutBoundHandlingEnabled()
setOutBoundHandlingEnabled
public void setOutBoundHandlingEnabled(boolean outBoundHandlingEnabled)
- Parameters:
outBoundHandlingEnabled
- if true smooks transformation are applied to outBound
message
isInBoundHandlingEnabled
public boolean isInBoundHandlingEnabled()
setInBoundHandlingEnabled
public void setInBoundHandlingEnabled(boolean inBoundHandlingEnabled)
- Parameters:
inBoundHandlingEnabled
- if true smooks transformation are applied to inBound
message
cleanup
public void cleanup()