public class AdaptorWithTwoParentOverrides extends AbstractAdaptor
Constructor and Description |
---|
AdaptorWithTwoParentOverrides() |
Modifier and Type | Method and Description |
---|---|
void |
getDocContent(Request req,
Response resp)
Gives the bytes of a document referenced with id.
|
void |
getDocIds(DocIdPusher pusher)
Gives list of document ids that you'd like on the GSA.
|
static void |
main(String[] args)
Call default main for adaptors.
|
destroy, init, initConfig, main
public void getDocIds(DocIdPusher pusher) throws InterruptedException
pusher
- used to send doc ids to GSAInterruptedException
- if an IO operations throws itpublic void getDocContent(Request req, Response resp) throws IOException
req
- info about document being soughtresp
- place to put document dataIOException
- if getting data failspublic static void main(String[] args)
args
- argv