|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cisco.scabb.servconf.mgmt.PrpcClient
public class PrpcClient
PrpcClient is used for sending URL categorization to the SCE in response to URL categorization request RDRs. The following code sample shows how to connect to the SCE and send a category for a URL:
PrpcClient prpcClient = new PrpcClient("10.56.216.34", "admin", "*****");
prpcClient.login();
prpcClient.categorize(1, "www.cnn.com/news.htm", 75);
prpcClient.logout();
| Constructor Summary | |
|---|---|
PrpcClient(java.lang.String hostname,
java.lang.String username,
java.lang.String password)
Creates a new PrpcClient. |
|
| Method Summary | |
|---|---|
void |
categorize(int ppcNum,
java.lang.String cacheKey,
int categoryId)
Insert the specified cacheKey and categoryId to the URL cache of the specified ppcNum on the SCE. |
void |
login()
Connect this PrpcClient to the SCE. |
void |
logout()
Disconnect this PrpcClient from the SCE. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrpcClient(java.lang.String hostname,
java.lang.String username,
java.lang.String password)
hostname - the SCE addressusername - the username for SCE authenticationpassword - the password for SCE authentication| Method Detail |
|---|
public void categorize(int ppcNum,
java.lang.String cacheKey,
int categoryId)
throws ApplyException
This method blocks until the SCE recieves the categorization message. This method can be invoked from multiple threads to improve performance.
ppcNum - the number of the PPC on the SCE. Valid values for the SCE2000
are 1-3.cacheKey - the URL to insert, in the format "host:path:parms".categoryId - the content category for classifying the URL. Special category
values to send fault indication to the SCE - TBD.
ApplyException - on communication failure or invalid arguments.
public void login()
throws ApplyException
ApplyException - on communication or authentication failure.public void logout()
public java.lang.String toString()
toString in class java.lang.Object
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||