View Javadoc
1   /**
2    * This Source Code Form is subject to the terms of the Mozilla Public
3    * License, v. 2.0. If a copy of the MPL was not distributed with this
4    * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5    *
6    * If it is not possible or desirable to put the notice in a particular
7    * file, then You may include the notice in a location (such as a LICENSE
8    * file in a relevant directory) where a recipient would be likely to look
9    * for such a notice.
10  
11   * 
12   */
13   
14  /*  ---------------------------------------------------------------------------
15   *  U.S. Government, Department of the Army
16   *  Army Materiel Command
17   *  Research Development Engineering Command
18   *  Communications Electronics Research Development and Engineering Center
19   *  ---------------------------------------------------------------------------
20   */
21  
22  package org.miloss.fgsms.agents;
23  
24  import java.io.IOException;
25  import org.apache.cxf.attachment.AttachmentDeserializer;
26  import org.apache.cxf.interceptor.Fault;
27  import org.apache.cxf.message.Message;
28  import org.apache.cxf.phase.Phase;
29  
30  /**
31   *
32   * @author AO
33   */
34  public class CXFInterceotorOutClient extends org.apache.cxf.phase.AbstractPhaseInterceptor {
35  
36      public CXFInterceotorOutClient() {
37          //super(Phase.PRE_INVOKE);
38          super(Phase.PREPARE_SEND);
39      }
40  
41      @Override
42      public void handleMessage(Message message) {
43          CXFCommonMessageHandler.ProcessRequest(message, true, this.getClass().getCanonicalName());
44          
45      }
46  
47      @Override
48      public void handleFault(Message messageParam) {
49          CXFCommonMessageHandler.ProcessResponse(messageParam, true, true, this.getClass().getCanonicalName());
50      }
51  }