|
|
|||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Objectcom.lightysoft.logmx.business.LogURL
public class LogURL
Locates a resource to open by a LogFileManager.
A LogURL contains LogURLParameter's storing URL
information (e.g. host, port, path, login,...).
Example:
To create a LogURL for a HTTP Manager handling URLs like:
http://host[:port][/path]
you can use:
LogURL url = new LogURL();
url.addParameter(new LogURLParameter("Host", LogURLParameterType.HOST));
url.addParameter(new LogURLParameter("Port", LogURLParameterType.INTEGER, 80, true)); // optional, with default value 80
url.addParameter(new LogURLParameter("Path", LogURLParameterType.FILEPATH, null, true)); // optional, without default value
LogURLParameter| Constructor Summary | |
|---|---|
LogURL()
Create a LogURL containing no parameter |
|
| Method Summary | |
|---|---|
void |
addParameter(LogURLParameter pParam)
Adds a Parameter to this URL |
Object |
clone()
Clone this URL (called by LogMX to clone URL returned by the Manager) |
LogURLParameter |
getParameter(String pParamName)
Get the Parameter named pParamName. |
List<LogURLParameter> |
getParameters()
Returns Parameters contained in this URL. |
int |
getSize()
Returns the number of Parameters in this URL |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogURL()
| Method Detail |
|---|
public void addParameter(LogURLParameter pParam)
Parameter to this URL
pParam - Parameter to addpublic LogURLParameter getParameter(String pParamName)
Parameter named pParamName.
This name must match the one you specified to create this Parameter.
pParamName - Name of the Parameter to retrieve
pParamName, or null if no such parameterpublic int getSize()
Parameters in this URL
Parameters in this URLpublic List<LogURLParameter> getParameters()
Parameters contained in this URL.
Returned list is a copy of internal map, so modifying this list will not modify this URL.
Parameters contained in this URLpublic Object clone()
clone in class ObjectObject.clone()
|
|
|||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||