| java.lang.Object org.cougaar.tools.csmart.ui.util.ClientServletUtil
ClientServletUtil | public class ClientServletUtil (Code) | | Utilities for contacting servlets in societies.
|
Inner Class :static class URLSpec | |
Method Summary | |
public static Vector | getAgentURLs(String URLString) Contact the agent provider servlet at the specified URL,
which returns the URLs of all the agents in the society. | public static ServletResponse | getCollectionFromAgent(String agentURL, String servletId, ArrayList parameterNames, ArrayList parameterValues, List data, int limit) Get a collection from a single agent and servlet.
Same as getCollectionFromAgents for a single agent.
Parameters: agentURL - the agent to contact Parameters: servletId - the servlet to contact Parameters: data - data to be sent to the servlet if non-null Parameters: limit - max. | public static ServletResult | getCollectionFromAgents(Vector agentURLs, String servletId, ArrayList parameterNames, ArrayList parameterValues, int limit) Get a collection from specified agents and servlet. | public static String | makeSecureURL(String host, int port) | public static String | makeURL(String host, int port) |
AGENT_INFO_SERVLET | final public static String AGENT_INFO_SERVLET(Code) | | |
AGENT_PROVIDER_SERVLET | final public static String AGENT_PROVIDER_SERVLET(Code) | | |
COMMUNITY_SERVLET | final public static String COMMUNITY_SERVLET(Code) | | |
METRICS_SERVLET | final public static String METRICS_SERVLET(Code) | | |
SEARCH_SERVLET | final public static String SEARCH_SERVLET(Code) | | |
getAgentURLs | public static Vector getAgentURLs(String URLString) throws Exception(Code) | | Contact the agent provider servlet at the specified URL,
which returns the URLs of all the agents in the society.
This may return null or a vector with zero elements;
in these cases, appropriate error messages are displayed for the user.
Parameters: URLString - the URL of the agent to contact vector of String; URLs of agents in society |
getCollectionFromAgent | public static ServletResponse getCollectionFromAgent(String agentURL, String servletId, ArrayList parameterNames, ArrayList parameterValues, List data, int limit)(Code) | | Get a collection from a single agent and servlet.
Same as getCollectionFromAgents for a single agent.
Parameters: agentURL - the agent to contact Parameters: servletId - the servlet to contact Parameters: data - data to be sent to the servlet if non-null Parameters: limit - max. number of objects to return, or -1 if no limit the collection from the servlet or null |
getCollectionFromAgents | public static ServletResult getCollectionFromAgents(Vector agentURLs, String servletId, ArrayList parameterNames, ArrayList parameterValues, int limit)(Code) | | Get a collection from specified agents and servlet.
The servlet must be one that returns a Collection.
to determine what objects to include in the collection.
Returns null if the agent or servlet cannot be contacted.
Parameters: agentURLs - the agents to contact; vector of String Parameters: servletId - the servlet to contact Parameters: limit - the limit for the number of objects to return, or -1 ifthere is no limit -- the servlet mustaccept a limit=N argument results from servlets |
makeSecureURL | public static String makeSecureURL(String host, int port)(Code) | | Make a URL that uses HTTPS
|
makeURL | public static String makeURL(String host, int port)(Code) | | Return a URL string of the form:
http://host:port/
Parameters: host - the host in the URL Parameters: port - the port in the URL the URL string |
|
|