org.jboss.wise.core.handlers
Class SmooksHandler
java.lang.Object
org.jboss.wise.core.handlers.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>
@ThreadSafe
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 setInBoundHandlingEnabled(boolean) and
setOutBoundHandlingEnabled(boolean) methods
- Author:
- Stefano Maestri, stefano.maestri@javalinux.it
- See Also:
setInBoundHandlingEnabled(boolean)
,
setOutBoundHandlingEnabled(boolean)
Constructor Summary |
SmooksHandler(java.lang.String smooksResource,
java.util.Map beans,
WSDynamicClient client,
java.lang.String smooksReport)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SmooksHandler
public SmooksHandler(java.lang.String smooksResource,
java.util.Map beans,
WSDynamicClient client,
java.lang.String smooksReport)
- Parameters:
smooksResource
- URI of smooks config filebeans
- used for smooks BeanAccessorclient
- smooksReport
-
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
Copyright © 2008-2009 Jboss.org. All Rights Reserved.