1 package org.kuali.student.security.cxf.interceptors; 2 3 import org.apache.cxf.message.Message; 4 import org.apache.cxf.phase.AbstractPhaseInterceptor; 5 import org.apache.cxf.phase.Phase; 6 7 public class AttachmentInInterceptor extends AbstractPhaseInterceptor<Message> { 8 public AttachmentInInterceptor() { 9 super(Phase.PRE_PROTOCOL); 10 } 11 12 public void handleMessage(Message message) { 13 System.out.println("\n\n In the AttachmentInInterceptor on the bus that does nothing ...... \n" + 14 " inbound message ... "+ message.getContextualProperty(Message.INBOUND_MESSAGE) + "\n" + 15 " wsdl service .... " + message.getContextualProperty(Message.WSDL_SERVICE) + "\n" + 16 " wsdl operation .... " + message.getContextualProperty(Message.WSDL_OPERATION) + "\n" + 17 " request uri .... " + message.getContextualProperty(Message.REQUEST_URI) + "\n" + 18 " path info .... " + message.getContextualProperty(Message.PATH_INFO) + "\n" 19 ); 20 } 21 22 public void handleFault(Message messageParam) { 23 } 24 25 }