@InInterceptors public class AppInboundInterceptor extends LoggingInInterceptor { @Override public void handleMessage(Message message) throws Fault { processPayLoad(message); super.handleMessage(message); } private void processPayLoad(Message message) { System.out.println("*** PROCESSING PAYLOAD AT IN-INTERCEPTOR **"); } }
@WebService(targetNamespace = "http://www.example.org/contract/DoubleIt", portName="DoubleItPort", serviceName="DoubleItService", endpointInterface="org.example.contract.doubleit.DoubleItPortType") @org.apache.cxf.interceptor.InInterceptors (interceptors = { "service.ValueCheckInInterceptor", "org.apache.cxf.binding.soap.saaj.SAAJInInterceptor", "service.ReadSOAPHeaderInInterceptor"}) public class DoubleItPortTypeImpl implements DoubleItPortType { @Resource private WebServiceContext context; public int doubleIt(int numberToDouble) { // should succeed (termOne has APPLICATION scope) System.out.println("First Word: " + context.getMessageContext().get("termOne")); // should succeed (termTwo has APPLICATION scope) System.out.println("Second Word: " + context.getMessageContext().get("termTwo")); return numberToDouble * 2; } }
@InInterceptors(classes={TestLogInterceptor.class}) public class AegisDeclaretiveService implements WebServiceMarkerInterface {
@InInterceptors(classes={TestLogInterceptor.class}) public class JaxWsDeclaretiveService implements WebServiceMarkerInterface {
@InInterceptors(interceptors = {"ee.openeid.siva.webapp.soap.interceptor.SoapRequestDataFilesInterceptor"}) @OutInterceptors(interceptors = {"ee.openeid.siva.webapp.soap.interceptor.SoapResponseHeaderInterceptor"}) @OutFaultInterceptors(interceptors = {"ee.openeid.siva.webapp.soap.interceptor.SoapFaultResponseInterceptor", "ee.openeid.siva.webapp.soap.interceptor.SoapResponseHeaderInterceptor"})
@InInterceptors(interceptors = "org.apache.cxf.interceptor.FIStaxInInterceptor") @OutInterceptors(interceptors = "org.apache.cxf.interceptor.FIStaxOutInterceptor") @EndpointProperty(key = "org.apache.cxf.fastinfoset.enabled", value = "true") public class BookStoreSoapRestFastInfoset extends BookStoreSoapRestImpl { @Override public Book addFastinfoBook(Book book) { return super.addFastinfoBook(book); } }
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) @InInterceptors(interceptors = { "org.jboss.wsf.stack.cxf.security.authentication.SubjectCreatingPolicyInterceptor" }) public class KolabServicePortTypeImpl implements KolabServicePortType { private static final Logger logger = Logger.getLogger(KolabServicePortTypeImpl.class.getName());
@EndpointProperty(key = "ws-security.validate.token", value = "false") }) @InInterceptors(interceptors = { "org.apache.cxf.interceptor.LoggingInInterceptor", "eu.itesla_project.iidm.ddb.util.WsSecurityInterceptor",