| 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 AttachmentOutInterceptor extends AbstractPhaseInterceptor<Message> { |
| 8 | |
public AttachmentOutInterceptor() { |
| 9 | 0 | super(Phase.PRE_PROTOCOL); |
| 10 | 0 | } |
| 11 | |
|
| 12 | |
public void handleMessage(Message message) { |
| 13 | 0 | System.out.println("\n\n In the AttachmentOutInterceptor 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 | 0 | } |
| 21 | |
|
| 22 | |
public void handleFault(Message messageParam) { |
| 23 | 0 | } |
| 24 | |
|
| 25 | |
} |