public final class NotesLocation extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_PROTOCOL
Protocol of a notes location.
|
static String |
LOCAL_HOST
Standard identifier for the local host.
|
static String |
NOTES_PROTOCOL
Protocol of a notes location.
|
| Constructor and Description |
|---|
NotesLocation(NotesLocation context,
String path)
Constructor.
|
NotesLocation(NotesLocation context,
String server,
String path)
Creates a new local location.
|
NotesLocation(String locationUri)
Constructor.
|
NotesLocation(String server,
String path)
Constructor for local locations.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost()
Returns the host of the notes location or
null if it's an
IIOP location. |
String |
getIIOPPasswd()
Deprecated.
use
getPassword() instead |
String |
getIIOPUser()
Deprecated.
use
getUsername() instead |
static NotesLocation |
getInstance(NotesLocation context,
String server,
String path)
Factory method for local Location.
|
static NotesLocation |
getInstance(String location)
Factory method for Location objects.
|
NotesLocation |
getLocalLocation()
Returns the local location corresponding to this location.
|
String |
getLocalServer()
Returns a string representing the local server.
|
String |
getPassword()
Returns the IIOP Password.
|
String |
getPath()
Returns the path of the notes location.
|
protected String |
getPathSep()
Returns the separator string between host and path
in locations.
|
String |
getProtocol()
Returns the protocol of the location.
|
String |
getServer()
Returns the server part of a location.
|
String |
getUsername()
Returns the IIOP Username.
|
boolean |
isHttp()
Checks if the notes location is using the HTTP protocol.
|
boolean |
isIIOP()
Checks if the notes location is a IIOP location or not.
|
boolean |
isLocal()
Checks if a notes location is local or not.
|
protected void |
setLocation(String locationUri)
Sets the location string.
|
String |
toString() |
public static final String NOTES_PROTOCOL
public static final String HTTP_PROTOCOL
public static final String LOCAL_HOST
public NotesLocation(String locationUri)
locationUri - URI of location of database.public NotesLocation(NotesLocation context, String path)
context - parent locationpath - path relative to contextpublic NotesLocation(NotesLocation context, String server, String path)
context - parent locationserver - the serverpath - path relative to contextpublic static NotesLocation getInstance(String location)
location - the location as url-like stringpublic static NotesLocation getInstance(NotesLocation context, String server, String path)
context - parent locationserver - the serverpath - the pathprotected void setLocation(String locationUri)
locationUri - URI of location of database.public String getIIOPPasswd()
getPassword() insteadpublic String getPassword()
public String getIIOPUser()
getUsername() insteadpublic String getUsername()
public String getPath()
public NotesLocation getLocalLocation()
public boolean isLocal()
true if the location is local, else
falsepublic boolean isIIOP()
true if it is a IIOP location, else falsepublic boolean isHttp()
true if the protocol is HTTP, else falsepublic String getHost()
null if it's an
IIOP location.public String getServer()
public String getLocalServer()
"local".protected String getPathSep()
public String getProtocol()
Copyright © 2005–2020. All rights reserved.