Class RemoteResultDoc
java.lang.Object
org.dlese.dpc.serviceclients.remotesearch.RemoteResultDoc
- All Implemented Interfaces:
Serializable
This class wraps the individual items that are returned by
RemoteSearcher.searchDocs(String). It is patterned after the ResultDoc class.- Author:
- ostwald
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteResultDoc(String id, String url, String collection, RemoteSearcher rs) Constructor for the RemoteResultDoc object.RemoteResultDoc(org.dom4j.Element record, RemoteSearcher rs) Construct a RemoteResultDoc from a MatchingRecord element (of the reponse from the UrlCheck Web Service) -
Method Summary
Modifier and TypeMethodDescriptionGets the collection attribute of the RemoteResultDoc objectGets the docReader attribute of the RemoteResultDoc object which supports display of RemoteResultDoc instances via JSP (seeADNItemDocReader).final StringGets the doctype attribute of the RemoteResultDoc object (hardcoded to "adn")Gets the document attribute of the RemoteResultDoc object.getId()Gets the id attribute of the RemoteResultDoc object (identifying the resource within DDS)final StringGets the readerClass attribute of the RemoteResultDoc objectgetUrl()Gets the url attribute of the RemoteResultDoc object, which pionts to the resource on the web.toString()A printable representation - used for debugging
-
Constructor Details
-
RemoteResultDoc
Constructor for the RemoteResultDoc object. Used to create a RemoteResultDoc from an alsoCatalogedBy element (seeRemoteSearcher.searchDocs(java.lang.String))- Parameters:
id- id of itemurl- url of itemcollection- collection label of itemrs- instance ofRemoteSearcher
-
RemoteResultDoc
Construct a RemoteResultDoc from a MatchingRecord element (of the reponse from the UrlCheck Web Service)- Parameters:
record- matching recordElementrs- instance ofRemoteSearcher
-
-
Method Details
-
getId
Gets the id attribute of the RemoteResultDoc object (identifying the resource within DDS)- Returns:
- The id value
-
getDoctype
Gets the doctype attribute of the RemoteResultDoc object (hardcoded to "adn")- Returns:
- The doctype value
-
getReaderClass
Gets the readerClass attribute of the RemoteResultDoc object- Returns:
- The readerClass value
-
getDocReader
Gets the docReader attribute of the RemoteResultDoc object which supports display of RemoteResultDoc instances via JSP (seeADNItemDocReader).- Returns:
- The docReader value
-
getDocument
Gets the document attribute of the RemoteResultDoc object. The doc attribute is obtained from theRemoteSearcherinstance and then cached for future access.- Returns:
- The document value
-
getUrl
Gets the url attribute of the RemoteResultDoc object, which pionts to the resource on the web.- Returns:
- The url value
-
getCollection
Gets the collection attribute of the RemoteResultDoc object- Returns:
- The collection value (a human readable string)
-
toString
A printable representation - used for debugging
-