Call the
CasCrawlerLocator.create()
method to connect to the CAS
Server.
The
CasCrawlerLocator
class allows you to establish a
connection with the CAS Server. In particular, the
CasCrawlerLocator.getService()
method is the call
that makes the connection.
To create a connection to the CAS Server:
Create a
CasCrawlerLocator
by callingcreate()
and specifying the host and port of the server running the CAS Server. For example:CasCrawlerLocator locator = CasCrawlerLocator.create("localhost", 8500);
Create a
CasCrawler
object and callgetService()
to establish a connection to the server and the CAS Server service. For example:CasCrawler crawler = locator.getService();
As a result of this procedure, you have a connection to the CAS Server that can perform crawling operations.