public StaxOutInterceptor() { super(Phase.PRE_STREAM); addAfter(AttachmentOutInterceptor.class.getName()); }
public Binding createBinding(BindingInfo bi) { XMLBinding binding = new XMLBinding(bi); binding.getInInterceptors().add(new JAXRSInInterceptor()); binding.getOutInterceptors().add(new JAXRSOutInterceptor()); binding.getOutFaultInterceptors().add(new XMLFaultOutInterceptor()); binding.getOutFaultInterceptors().add(new StaxOutInterceptor()); return binding; }
String encoding = getEncoding(message); XMLOutputFactory factory = getXMLOutputFactory(message); if (factory == null) { if (writer == null) { os = setupOutputStream(os); xwriter = StaxUtils.createXMLStreamWriter(os, encoding); } else { synchronized (factory) { if (writer == null) { os = setupOutputStream(os); xwriter = factory.createXMLStreamWriter(os, encoding); } else {
new StaxOutInterceptor().handleMessage(message); message.put(org.apache.cxf.message.Message.RESPONSE_CODE, f.getStatusCode()); NSStack nsStack = new NSStack();
public Binding createBinding(BindingInfo binding) { NMRBinding jb = new NMRBinding((NMRBindingInfo) binding); jb.getInInterceptors().add(new StaxInInterceptor()); jb.getInInterceptors().add(new NMROperationInInterceptor()); jb.getInInterceptors().add(new NMRWrapperInInterceptor()); jb.getOutInterceptors().add(new StaxOutInterceptor()); jb.getOutInterceptors().add(new NMRWrapperOutInterceptor()); jb.getOutFaultInterceptors().add(new StaxOutInterceptor()); jb.getOutFaultInterceptors().add(new NMRFaultOutInterceptor()); jb.getInFaultInterceptors().add(new NMRFaultInInterceptor()); return jb; }
String encoding = getEncoding(message); XMLOutputFactory factory = getXMLOutputFactory(message); if (factory == null) { if (writer == null) { os = setupOutputStream(os); xwriter = StaxUtils.createXMLStreamWriter(os, encoding); } else { synchronized (factory) { if (writer == null) { os = setupOutputStream(os); xwriter = factory.createXMLStreamWriter(os, encoding); } else {
private void checkWSRMInterceptors() { //to handle WS-RM requests and responses for (Interceptor interceptor : getBus().getOutInterceptors()) { if (interceptor.getClass().getName().equals("org.apache.cxf.ws.rm.RMOutInterceptor")) { ep.getOutInterceptors().add(new SoapOutInterceptor(getBus())); ep.getOutInterceptors().add(new StaxOutInterceptor()); ep.getInInterceptors().add(new StaxInInterceptor()); ep.getInInterceptors().add(new ReadHeadersInterceptor(getBus())); break; } } }
String encoding = getEncoding(message); XMLOutputFactory factory = getXMLOutputFactory(message); if (factory == null) { if (writer == null) { os = setupOutputStream(message, os); xwriter = StaxUtils.createXMLStreamWriter(os, encoding); } else { synchronized (factory) { if (writer == null) { os = setupOutputStream(message, os); xwriter = factory.createXMLStreamWriter(os, encoding); } else {
public StaxOutInterceptor() { super(Phase.PRE_STREAM); addAfter(AttachmentOutInterceptor.class.getName()); }
public Binding createBinding(BindingInfo binding) { XMLBinding xb = new XMLBinding(binding); xb.getInInterceptors().add(new AttachmentInInterceptor()); xb.getInInterceptors().add(new StaxInInterceptor()); xb.getInInterceptors().add(new DocLiteralInInterceptor()); xb.getInInterceptors().add(new XMLMessageInInterceptor()); xb.getOutInterceptors().add(new AttachmentOutInterceptor()); xb.getOutInterceptors().add(new StaxOutInterceptor()); xb.getOutInterceptors().add(new WrappedOutInterceptor()); xb.getOutInterceptors().add(new XMLMessageOutInterceptor()); xb.getInFaultInterceptors().add(new XMLFaultInInterceptor()); xb.getOutFaultInterceptors().add(new StaxOutInterceptor()); xb.getOutFaultInterceptors().add(new XMLFaultOutInterceptor()); return xb; }
String encoding = getEncoding(message); XMLOutputFactory factory = getXMLOutputFactory(message); if (factory == null) { if (writer == null) { os = setupOutputStream(message, os); xwriter = StaxUtils.createXMLStreamWriter(os, encoding); } else { synchronized (factory) { if (writer == null) { os = setupOutputStream(message, os); xwriter = factory.createXMLStreamWriter(os, encoding); } else {
public StaxOutInterceptor() { super(Phase.PRE_STREAM); addAfter(AttachmentOutInterceptor.class.getName()); }
public Binding createBinding(BindingInfo binding) { XMLBinding xb = new XMLBinding(binding); xb.getInInterceptors().add(new AttachmentInInterceptor()); xb.getInInterceptors().add(new StaxInInterceptor()); xb.getInInterceptors().add(new DocLiteralInInterceptor()); xb.getInInterceptors().add(new XMLMessageInInterceptor()); xb.getOutInterceptors().add(new AttachmentOutInterceptor()); xb.getOutInterceptors().add(new StaxOutInterceptor()); xb.getOutInterceptors().add(new WrappedOutInterceptor()); xb.getOutInterceptors().add(new XMLMessageOutInterceptor()); xb.getInFaultInterceptors().add(new XMLFaultInInterceptor()); xb.getOutFaultInterceptors().add(new StaxOutInterceptor()); xb.getOutFaultInterceptors().add(new XMLFaultOutInterceptor()); return xb; }
public StaxOutInterceptor() { super(Phase.PRE_STREAM); addAfter(AttachmentOutInterceptor.class.getName()); }
public Binding createBinding(BindingInfo bi) { XMLBinding binding = new XMLBinding(bi); binding.getInInterceptors().add(new AttachmentInInterceptor()); binding.getInInterceptors().add(new DatabindingInSetupInterceptor()); binding.getOutInterceptors().add(new AttachmentOutInterceptor()); binding.getOutInterceptors().add(new ContentTypeOutInterceptor()); binding.getOutInterceptors().add(new DatabindingOutSetupInterceptor()); binding.getInFaultInterceptors().add(new XMLFaultInInterceptor()); binding.getOutFaultInterceptors().add(new ContentTypeOutInterceptor()); binding.getOutFaultInterceptors().add(new StaxOutInterceptor()); binding.getOutFaultInterceptors().add(new XMLFaultOutInterceptor()); return binding; }
public Binding createBinding(BindingInfo binding) { JBIBindingInfo bindingInfo = (JBIBindingInfo) binding; JBIBinding jb = new JBIBinding(bindingInfo); jb.getInInterceptors().add(new StaxInInterceptor()); jb.getInInterceptors().add(new JBIOperationInInterceptor()); jb.getInInterceptors().add(new JBIWrapperInInterceptor()); jb.getOutInterceptors().add(new StaxOutInterceptor()); jb.getOutInterceptors().add(new JBIWrapperOutInterceptor()); jb.getOutFaultInterceptors().add(new StaxOutInterceptor()); jb.getOutFaultInterceptors().add(new JBIFaultOutInterceptor()); jb.getInFaultInterceptors().add(new JBIFaultInInterceptor()); if (bindingInfo.getJBIBindingConfiguration().isMtomEnabled()) { jb.getInInterceptors().add(new AttachmentInInterceptor()); jb.getOutInterceptors().add(new AttachmentOutInterceptor()); } return jb; }
@Override public void activate() throws Exception { super.activate(); outList = new ArrayList<Interceptor<? extends Message>>(); if (isMtomEnabled()) { outList.add(new JbiOutInterceptor()); outList.add(new MtomCheckInterceptor(true)); outList.add(new AttachmentOutInterceptor()); } outList.add(new JbiOutInterceptor()); if (isSchemaValidationEnabled()) { outList.add(new SchemaValidationOutInterceptor(isUseJBIWrapper(), isUseSOAPEnvelope())); } outList.add(new JbiOutWsdl1Interceptor(isUseJBIWrapper(), isUseSOAPEnvelope())); outList.add(new SoapPreProtocolOutInterceptor()); outList.add(new SoapOutInterceptor(getBus())); outList.add(new StaxOutInterceptor()); }
sb.getOutFaultInterceptors().add(new StaxOutInterceptor()); sb.getOutFaultInterceptors().add(new SoapOutInterceptor(getBus())); sb.getOutFaultInterceptors().add(new AttachmentOutInterceptor()); sb.getOutInterceptors().add(new StaxOutInterceptor()); sb.getOutInterceptors().add(SoapHeaderOutFilterInterceptor.INSTANCE);
sb.getOutFaultInterceptors().add(new StaxOutInterceptor()); sb.getOutFaultInterceptors().add(new SoapOutInterceptor(getBus())); sb.getOutFaultInterceptors().add(new AttachmentOutInterceptor()); sb.getOutInterceptors().add(new StaxOutInterceptor()); sb.getOutInterceptors().add(SoapHeaderOutFilterInterceptor.INSTANCE);
cxfService.getOutInterceptors().add( new MtomCheckInterceptor(isMtomEnabled())); cxfService.getOutInterceptors().add(new StaxOutInterceptor()); ep.getOutInterceptors().add(new StaxOutInterceptor()); ep.getOutInterceptors().add(new SoapOutInterceptor(getBus())); ep.putAll(this.getProperties());