1 /* 2 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com 3 * The software in this package is published under the terms of the CPAL v1.0 4 * license, a copy of which has been included with this distribution in the 5 * LICENSE.txt file. 6 */ 7 package org.mule.module.cxf.support; 8 9 import org.apache.cxf.interceptor.StaxInInterceptor; 10 import org.apache.cxf.phase.Phase; 11 12 /** 13 * Resets the ReversibleXMLStreamReader so the person receiving it can start back 14 * at the beginning of the stream. 15 */ 16 public class ReversibleStaxInInterceptor extends ReversibleStaxInterceptor 17 { 18 19 public ReversibleStaxInInterceptor() 20 { 21 super(Phase.POST_STREAM); 22 getAfter().add(StreamClosingInterceptor.class.getName()); 23 getAfter().add(StaxInInterceptor.class.getName()); 24 } 25 26 } 27 28