com.google.enterprise.adaptor.examples
Class AdaptorTemplate
java.lang.Object
com.google.enterprise.adaptor.AbstractAdaptor
com.google.enterprise.adaptor.examples.AdaptorTemplate
- All Implemented Interfaces:
- Adaptor
public class AdaptorTemplate
- extends AbstractAdaptor
Demonstrates what code is necessary for putting public
content onto a GSA. The key operations are:
- providing document ids
- providing document bytes given a document id
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdaptorTemplate
public AdaptorTemplate()
getDocIds
public void getDocIds(DocIdPusher pusher)
throws InterruptedException
- Gives list of document ids that you'd like on the GSA.
- Throws:
InterruptedException
getDocContent
public void getDocContent(Request req,
Response resp)
throws IOException
- Gives the bytes of a document referenced with id.
- Throws:
IOException
main
public static void main(String[] args)
- Call default main for adaptors.