public class StatusURLDescriptorList extends Status
Copyright: Copyright 2003-2014, Knowledge Science Group, University of Calgary. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The Knowledge Science Group makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Modifier and Type | Field and Description |
---|---|
private List<URLDescriptor> |
urls |
BAD_CONTENT_FIELD, BAD_REPLY_TO_FIELD, EXCEPTION_CAUGHT, SUCCESS, TIMEOUT, UNEXEPCTED_EXCEPTION_CAUGHT, UNKNOWN_ERROR, UNKNOWN_REPLY, UNKNOWN_WARNING
Constructor and Description |
---|
StatusURLDescriptorList()
Default constructor
|
StatusURLDescriptorList(int status,
List<URLDescriptor> urls) |
StatusURLDescriptorList(int status,
String explanation,
List<URLDescriptor> urls) |
Modifier and Type | Method and Description |
---|---|
void |
fromString_extension(TokenParser parser)
To be overridden by subclasses to read any additional information from a string.
|
List<URLDescriptor> |
getURLs() |
static void |
main(String[] args) |
void |
setURLs(List<URLDescriptor> urls) |
String |
toString_extension()
other methods
|
clone, codeToString, fromString, fromString, fromString2, getExplanation, getStatusValue, setExplanation, setStatus, setStatusValue, toString
private List<URLDescriptor> urls
public StatusURLDescriptorList()
public StatusURLDescriptorList(int status, List<URLDescriptor> urls)
status
- contains either a -1 when nothing is connected/registered.
0 otherwise.urls
- contains the full address of the LAC.public StatusURLDescriptorList(int status, String explanation, List<URLDescriptor> urls)
public void setURLs(List<URLDescriptor> urls)
urls
- contains the full address (IPAddress and port #) of the LACpublic List<URLDescriptor> getURLs()
public String toString_extension()
toString_extension
in class Status
public void fromString_extension(TokenParser parser) throws Exception
Status
fromString_extension
in class Status
ParseException
Exception
public static void main(String[] args)