Package net.morimekta.providence.client
Class ProvidenceHttpContent
- java.lang.Object
-
- net.morimekta.providence.client.ProvidenceHttpContent
-
- All Implemented Interfaces:
com.google.api.client.http.HttpContent,com.google.api.client.util.StreamingContent
public class ProvidenceHttpContent extends java.lang.Object implements com.google.api.client.http.HttpContentHTTP content wrapper for providence messages.- Since:
- 1.8.0
-
-
Constructor Summary
Constructors Constructor Description ProvidenceHttpContent(net.morimekta.providence.PMessage message, net.morimekta.providence.serializer.Serializer serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLength()java.lang.StringgetType()booleanretrySupported()voidwriteTo(java.io.OutputStream out)
-
-
-
Method Detail
-
getLength
public long getLength()
- Specified by:
getLengthin interfacecom.google.api.client.http.HttpContent
-
getType
public java.lang.String getType()
- Specified by:
getTypein interfacecom.google.api.client.http.HttpContent
-
retrySupported
public boolean retrySupported()
- Specified by:
retrySupportedin interfacecom.google.api.client.http.HttpContent
-
writeTo
public void writeTo(java.io.OutputStream out) throws java.io.IOException- Specified by:
writeToin interfacecom.google.api.client.http.HttpContent- Specified by:
writeToin interfacecom.google.api.client.util.StreamingContent- Throws:
java.io.IOException
-
-