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.HttpContent
HTTP content wrapper for providence messages.- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description ProvidenceHttpContent(net.morimekta.providence.PMessageOrBuilder message, net.morimekta.providence.serializer.Serializer serializer)
ProvidenceHttpContent(net.morimekta.providence.PServiceCall serviceCall, net.morimekta.providence.serializer.Serializer serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLength()
java.lang.String
getType()
boolean
retrySupported()
void
writeTo(java.io.OutputStream out)
-
-
-
Constructor Detail
-
ProvidenceHttpContent
public ProvidenceHttpContent(@Nonnull net.morimekta.providence.PMessageOrBuilder message, @Nonnull net.morimekta.providence.serializer.Serializer serializer)
-
ProvidenceHttpContent
public ProvidenceHttpContent(@Nonnull net.morimekta.providence.PServiceCall serviceCall, @Nonnull net.morimekta.providence.serializer.Serializer serializer)
-
-
Method Detail
-
getLength
public long getLength()
- Specified by:
getLength
in interfacecom.google.api.client.http.HttpContent
-
getType
public java.lang.String getType()
- Specified by:
getType
in interfacecom.google.api.client.http.HttpContent
-
retrySupported
public boolean retrySupported()
- Specified by:
retrySupported
in interfacecom.google.api.client.http.HttpContent
-
writeTo
public void writeTo(java.io.OutputStream out) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.api.client.http.HttpContent
- Specified by:
writeTo
in interfacecom.google.api.client.util.StreamingContent
- Throws:
java.io.IOException
-
-