Class CachedCxfPayload<T>

java.lang.Object
org.apache.camel.component.cxf.common.CxfPayload<T>
org.apache.camel.component.cxf.converter.CachedCxfPayload<T>
All Implemented Interfaces:
org.apache.camel.StreamCache

public class CachedCxfPayload<T> extends CxfPayload<T> implements org.apache.camel.StreamCache
StreamCache implementation for CXF payload.

Important: All the classes from the Camel release that implements StreamCache is NOT intended for end users to create as instances, but they are part of Camels stream-caching functionality.

  • Constructor Details

    • CachedCxfPayload

      public CachedCxfPayload(CxfPayload<T> orig, org.apache.camel.Exchange exchange)
  • Method Details

    • reset

      public void reset()
      Specified by:
      reset in interface org.apache.camel.StreamCache
    • writeTo

      public void writeTo(OutputStream os) throws IOException
      Specified by:
      writeTo in interface org.apache.camel.StreamCache
      Throws:
      IOException
    • inMemory

      public boolean inMemory()
      Specified by:
      inMemory in interface org.apache.camel.StreamCache
    • length

      public long length()
      Specified by:
      length in interface org.apache.camel.StreamCache
    • position

      public long position()
      Specified by:
      position in interface org.apache.camel.StreamCache
    • copy

      public org.apache.camel.StreamCache copy(org.apache.camel.Exchange exchange) throws IOException
      Specified by:
      copy in interface org.apache.camel.StreamCache
      Throws:
      IOException