public class LogURL extends Object
LogFileManager.LogURL contains LogURLParameter's storing URL
information (e.g. host, port, path, login,...).LogURL for a HTTP Manager handling URLs like: http://host[:port][/path]
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 and Description |
|---|
LogURL()
Create a LogURL containing no parameter
|
| Modifier and Type | Method and Description |
|---|---|
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 |
LogURLParameter |
removeParameter(String pParamName)
Remove the
Parameter named pParamName. |
public LogURL()
public void addParameter(LogURLParameter pParam)
Parameter to this URLpParam - 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 retrievepParamName, or null if no such parameterpublic LogURLParameter removeParameter(String pParamName)
Parameter named pParamName.
This name must match the one you specified to create this Parameter.pParamName - Name of the Parameter to removepParamName, or null if no such parameterpublic int getSize()
Parameters in this URLParameters 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()Copyright © 2025 LightySoft. All rights reserved. [LogMX v8.4.0 (Jan 3, 2025)]