|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBase
org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBLOBBase
org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBLOBGeneric
public class ResultElementBLOBGeneric
This class acts as a generic placeholder for the records that can be inserted and extracted from the
ResultSet payload parts
| Field Summary | |
|---|---|
static java.lang.String |
RECORD_COLLECTION_NAME
The name of the collection attribute holding the collection value |
static java.lang.String |
RECORD_ID_NAME
The name of the id attribute holding the identifier value |
| Constructor Summary | |
|---|---|
ResultElementBLOBGeneric()
Default contructor nessecary for the framework |
|
ResultElementBLOBGeneric(java.lang.String id,
java.lang.String collection,
java.lang.String payload,
java.io.InputStream content)
Creates a new ResultElementBLOBGeneric |
|
| Method Summary | |
|---|---|
void |
close()
closes underlying structures, streams |
void |
fromXML(java.lang.String xml)
This method must be able to reconstruct the result elelement from a xml string as returned by ResultElementBase.toXML() |
java.io.InputStream |
getContentOfBLOB()
Retrieves the blob content |
java.lang.String |
getPayload()
Retrieves the payload |
void |
setContentOfBLOB(java.io.InputStream content)
sets the blob content |
java.lang.String |
toXML()
This method must return a valid xml serialization of the result record payload. |
| Methods inherited from class org.gcube.common.searchservice.searchlibrary.resultset.elements.ResultElementBase |
|---|
getRecordAttributes, getRecordAttributes, isValid, RS_fromXML, RS_toXML, setRecordAttributes |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RECORD_ID_NAME
public static final java.lang.String RECORD_COLLECTION_NAME
| Constructor Detail |
|---|
public ResultElementBLOBGeneric()
public ResultElementBLOBGeneric(java.lang.String id,
java.lang.String collection,
java.lang.String payload,
java.io.InputStream content)
throws java.lang.Exception
ResultElementBLOBGeneric
id - The value of the id. This cannot be null or an empty stringcollection - The collection this id belongs to. This cannot be null or an empty stringpayload - The payload of the recordcontent - the content of the blob
java.lang.Exception - The ResultElementBLOBGeneric could not be created| Method Detail |
|---|
public java.lang.String getPayload()
public void close()
throws java.lang.Exception
ResultElementBLOBBase
close in class ResultElementBLOBBasejava.lang.Exception - An unrecoverable for the operation error occuredResultElementBLOBBase.close()
public void setContentOfBLOB(java.io.InputStream content)
throws java.lang.Exception
ResultElementBLOBBase
setContentOfBLOB in class ResultElementBLOBBasecontent - sets the content of the blob
java.lang.Exception - An unrecoverable for the operation error occuredResultElementBLOBBase.setContentOfBLOB(java.io.InputStream)
public java.io.InputStream getContentOfBLOB()
throws java.lang.Exception
ResultElementBLOBBase
getContentOfBLOB in class ResultElementBLOBBasejava.lang.Exception - An uinrecoverablee for the operation error occuredResultElementBLOBBase.getContentOfBLOB()
public java.lang.String toXML()
throws java.lang.Exception
ResultElementBase
toXML in class ResultElementBasejava.lang.Exception - An unrecoverable for the operation error occuredResultElementBase.toXML()
public void fromXML(java.lang.String xml)
throws java.lang.Exception
ResultElementBaseResultElementBase.toXML()
fromXML in class ResultElementBasexml - The serialized string to populate the insance from
java.lang.Exception - An unrecoverable for the operation error occuredResultElementBase.fromXML(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||