|
Oracle Secure Enterprise Search Java API Reference 10g Release 1 (10.1.8.1) B32515-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
DocumentContainer is an interface used by a crawler plugin to submit/retrieve document information
| Field Summary | |
static int |
STATUS_ACCESS_FORBIDDENAccess to this document is forbidden |
static int |
STATUS_AUTH_REQUIREDAuthorization required to access this document |
static int |
STATUS_BAD_GATEWAYBad gateway for accessing this document |
static int |
STATUS_BAD_REQUESTRequest to access this document is bad |
static int |
STATUS_CANNOT_READThe document has no contents |
static int |
STATUS_CONNECTION_REFUSEDConnection refused when accessing this document |
static int |
STATUS_DOC_BOUNDARY_RULE_EXCLUDEDThe document was excluded based on boundary rules |
static int |
STATUS_DOC_MIME_TYPE_EXCLUDEDThe document was excluded based on mime type |
static int |
STATUS_DOC_SIZE_TOO_BIGThe document was too big to handle |
static int |
STATUS_DUPLICATE_DOCduplicate document which should be ignored |
static int |
STATUS_EMPTY_DOCThe document has no contents |
static int |
STATUS_FETCH_ERRORThe document cannot be retrieved |
static int |
STATUS_FILTER_ERRORThe document can not be filtered |
static int |
STATUS_IO_EXCEPTIONIO exception when processing this document |
static int |
STATUS_LOGIN_FAILEDLogin failed for this document |
static int |
STATUS_NOTFOUNDThe document cannot be found |
static int |
STATUS_OK_BUT_NO_INDEXThe document is fine, but do not index it yet |
static int |
STATUS_OK_CRAWLEDThe document was crawled ok |
static int |
STATUS_OK_FOR_INDEXThe document is ready to be indexed |
static int |
STATUS_OUT_OF_MEMORYOut of memory error when processing this document |
static int |
STATUS_PROXY_REQUIREDProxy required to access this document |
static int |
STATUS_READ_TIMEOUTRead timeout on this document |
static int |
STATUS_REQUEST_TIMEOUTRequest to access this document time out |
static int |
STATUS_SERVER_ERRORThe server has problem deliverying this dopcument |
| Method Summary | |
void |
addAttachment(String name, InputStream doc, String contentType)Adding a binary document attachment. |
void |
addAttachment(String name, Reader doc, String contentType)Adding a text document attachment. |
void |
clearAttachments()Remove all attachments |
Reader |
getDocumentReader()Get the reader for the data that was set in the documentContainer. |
int |
getDocumentStatus()Get the status of the document (DocumentContainer.STATUS*) |
InputStream |
getDocumentStream()Get the stream for the data that was set in the documentContainer. |
DocumentMetadata |
getMetadata()Get the metadata object associated with this document container |
void |
setDocument(InputStream doc)Set a document using the InputStream. |
void |
setDocument(Reader doc)Set the document to be processed. |
void |
setDocumentStatus(int status)Set the status of the document. |
void |
setMetadata(DocumentMetadata meta)Set the Document Metadata object. |
| Field Detail |
public static final int STATUS_OK_FOR_INDEX
public static final int STATUS_BAD_REQUEST
public static final int STATUS_AUTH_REQUIRED
public static final int STATUS_ACCESS_FORBIDDEN
public static final int STATUS_NOTFOUND
public static final int STATUS_PROXY_REQUIRED
public static final int STATUS_REQUEST_TIMEOUT
public static final int STATUS_SERVER_ERROR
public static final int STATUS_BAD_GATEWAY
public static final int STATUS_FETCH_ERROR
public static final int STATUS_READ_TIMEOUT
public static final int STATUS_FILTER_ERROR
public static final int STATUS_OUT_OF_MEMORY
public static final int STATUS_IO_EXCEPTION
public static final int STATUS_CONNECTION_REFUSED
public static final int STATUS_DUPLICATE_DOC
public static final int STATUS_EMPTY_DOC
public static final int STATUS_LOGIN_FAILED
public static final int STATUS_OK_BUT_NO_INDEX
public static final int STATUS_OK_CRAWLED
public static final int STATUS_CANNOT_READ
public static final int STATUS_DOC_SIZE_TOO_BIG
public static final int STATUS_DOC_MIME_TYPE_EXCLUDED
public static final int STATUS_DOC_BOUNDARY_RULE_EXCLUDED
| Method Detail |
public void setMetadata(DocumentMetadata meta)
meta - the metadata objectpublic DocumentMetadata getMetadata()
public Reader getDocumentReader()
public InputStream getDocumentStream()
public void setDocument(Reader doc)
doc - the reader to read the documentpublic void setDocument(InputStream doc)
doc - the input stream to read the document
public void addAttachment(String name,
InputStream doc,
String contentType)
name - the name of the attachment; null if unknowndoc - the input stream to read the attachmentcontentType - the mimetype of the attachment, set to null if unknown
public void addAttachment(String name,
Reader doc,
String contentType)
name - the name of the attachment; null if unknown. Note that the name of the attachment is not indexed.doc - the input text reader to read the attachmentcontentType - the mimetype of the attachment, set to null if unknownpublic void clearAttachments()
public int getDocumentStatus()
public void setDocumentStatus(int status)
throws ProcessingException
status - the document status codeProcessingException
|
Oracle Secure Enterprise Search Java API Reference 10g Release 1 (10.1.8.1) B32515-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||