Class CommunicationLogEntity

java.lang.Object
org.apache.http.entity.HttpEntityWrapper
org.somda.sdc.dpws.http.apache.CommunicationLogEntity
All Implemented Interfaces:
org.apache.http.HttpEntity

public class CommunicationLogEntity extends org.apache.http.entity.HttpEntityWrapper
Entity wrapper to enable CommunicationLog capabilities in the http client.
  • Constructor Details

    • CommunicationLogEntity

      public CommunicationLogEntity(org.apache.http.HttpEntity wrappedEntity, OutputStream communicationLogStream)
      Creates a new entity wrapper.
      Parameters:
      wrappedEntity - the entity to wrap.
      communicationLogStream - the stream to also write the content to.
  • Method Details

    • getContent

      public InputStream getContent() throws IOException
      Specified by:
      getContent in interface org.apache.http.HttpEntity
      Overrides:
      getContent in class org.apache.http.entity.HttpEntityWrapper
      Throws:
      IOException
    • writeTo

      public void writeTo(OutputStream outStream) throws IOException
      Specified by:
      writeTo in interface org.apache.http.HttpEntity
      Overrides:
      writeTo in class org.apache.http.entity.HttpEntityWrapper
      Throws:
      IOException
    • isRepeatable

      public boolean isRepeatable()
      Specified by:
      isRepeatable in interface org.apache.http.HttpEntity
      Overrides:
      isRepeatable in class org.apache.http.entity.HttpEntityWrapper