congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
StaxOutInterceptor
Code IndexAdd Tabnine to your IDE (free)

How to use
StaxOutInterceptor
in
org.apache.cxf.interceptor

Best Java code snippets using org.apache.cxf.interceptor.StaxOutInterceptor (Showing top 20 results out of 315)

origin: apache/cxf

public StaxOutInterceptor() {
  super(Phase.PRE_STREAM);
  addAfter(AttachmentOutInterceptor.class.getName());
}
origin: org.apache.cxf/cxf-bundle-jaxrs

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;
}
origin: apache/cxf

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 {
origin: apache/cxf

new StaxOutInterceptor().handleMessage(message);
message.put(org.apache.cxf.message.Message.RESPONSE_CODE, f.getStatusCode());
NSStack nsStack = new NSStack();
origin: org.apache.servicemix.cxf/org.apache.servicemix.cxf.binding.nmr

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;
}
origin: org.apache.cxf/cxf-core

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 {
origin: org.apache.servicemix/servicemix-cxf-bc

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;
    }
  }
}
origin: org.apache.cxf/cxf-api

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 {
origin: org.apache.cxf/cxf-core

public StaxOutInterceptor() {
  super(Phase.PRE_STREAM);
  addAfter(AttachmentOutInterceptor.class.getName());
}
origin: apache/cxf

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;
}
origin: org.apache.cxf/cxf-bundle-jaxrs

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 {
origin: org.apache.cxf/cxf-api

public StaxOutInterceptor() {
  super(Phase.PRE_STREAM);
  addAfter(AttachmentOutInterceptor.class.getName());
}
origin: org.apache.cxf/cxf-bundle-jaxrs

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;
} 

origin: org.apache.cxf/cxf-bundle-jaxrs

public StaxOutInterceptor() {
  super(Phase.PRE_STREAM);
  addAfter(AttachmentOutInterceptor.class.getName());
}
origin: org.apache.cxf/cxf-rt-bindings-http

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;
}

origin: org.apache.servicemix/servicemix-cxf-se

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;
}
origin: org.apache.servicemix/servicemix-cxf-bc

@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());
}
origin: apache/cxf

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);
origin: org.apache.cxf/cxf-rt-bindings-soap

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);
origin: org.apache.servicemix/servicemix-cxf-bc

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());
org.apache.cxf.interceptorStaxOutInterceptor

Javadoc

Creates an XMLStreamWriter from the OutputStream on the Message.

Most used methods

  • <init>
  • addAfter
  • getEncoding
  • getXMLOutputFactory
  • setupOutputStream
  • handleMessage

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • getSystemService (Context)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JList (javax.swing)
  • JPanel (javax.swing)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now