|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.io.payloads.BasePayload<V>
public abstract class BasePayload<V>
| Field Summary | |
|---|---|
protected V |
content
|
protected MutableContentMetadata |
contentMetadata
|
protected boolean |
written
|
| Constructor Summary | |
|---|---|
protected |
BasePayload(V content)
|
protected |
BasePayload(V content,
MutableContentMetadata contentMetadata)
|
| Method Summary | |
|---|---|
void |
close()
Delegates to release() |
boolean |
equals(Object obj)
|
MutableContentMetadata |
getContentMetadata()
|
InputStream |
getInput()
Creates a new InputStream object of the payload. |
V |
getRawContent()
Payload in its original form. |
int |
hashCode()
|
boolean |
isRepeatable()
By default we are repeatable. |
void |
release()
By default there are no resources to release. |
void |
setContentMetadata(MutableContentMetadata in)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jclouds.io.Payload |
|---|
openStream |
| Field Detail |
|---|
protected final V content
protected transient volatile boolean written
protected MutableContentMetadata contentMetadata
| Constructor Detail |
|---|
protected BasePayload(V content)
protected BasePayload(V content,
MutableContentMetadata contentMetadata)
| Method Detail |
|---|
public InputStream getInput()
Payload
getInput in interface com.google.common.io.InputSupplier<InputStream>getInput in interface Payloadpublic V getRawContent()
getRawContent in interface Payloadpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic boolean isRepeatable()
isRepeatable in interface Payloadpublic void release()
release in interface Payloadpublic void close()
close in interface Closeablepublic MutableContentMetadata getContentMetadata()
getContentMetadata in interface Payloadpublic void setContentMetadata(MutableContentMetadata in)
setContentMetadata in interface Payload
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||