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.HttpEntityWrapperEntity wrapper to enable CommunicationLog capabilities in the http client.
-
-
Constructor Summary
Constructors Constructor Description CommunicationLogEntity(org.apache.http.HttpEntity wrappedEntity, OutputStream communicationLogStream)Creates a new entity wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetContent()booleanisRepeatable()voidwriteTo(OutputStream outStream)
-
-
-
Constructor Detail
-
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 Detail
-
getContent
public InputStream getContent() throws IOException
- Specified by:
getContentin interfaceorg.apache.http.HttpEntity- Overrides:
getContentin classorg.apache.http.entity.HttpEntityWrapper- Throws:
IOException
-
writeTo
public void writeTo(OutputStream outStream) throws IOException
- 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
-
-