Package org.somda.sdc.dpws.http.apache
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.
-
Field Summary
Fields inherited from class org.apache.http.entity.HttpEntityWrapper
wrappedEntity -
Constructor Summary
ConstructorsConstructorDescriptionCommunicationLogEntity(org.apache.http.HttpEntity wrappedEntity, OutputStream communicationLogStream) Creates a new entity wrapper. -
Method Summary
Methods inherited from class org.apache.http.entity.HttpEntityWrapper
consumeContent, getContentEncoding, getContentLength, getContentType, isChunked, isStreaming
-
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
- Specified by:
getContentin interfaceorg.apache.http.HttpEntity- Overrides:
getContentin classorg.apache.http.entity.HttpEntityWrapper- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceorg.apache.http.HttpEntity- Overrides:
writeToin classorg.apache.http.entity.HttpEntityWrapper- Throws:
IOException
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatablein interfaceorg.apache.http.HttpEntity- Overrides:
isRepeatablein classorg.apache.http.entity.HttpEntityWrapper
-