|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.information.ServerDef
public class ServerDef
Server definition used by an Information Service configuration.
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_AUTOCONNECT
XML element attribute describing the server definition's auto-connect preference. |
static java.lang.String |
ATTRIBUTE_DESCRIPTION
XML element attribute describing the repository definition's description. |
static java.lang.String |
ATTRIBUTE_DOMAIN
XML element attribute describing the repository definition's domain. |
static java.lang.String |
ATTRIBUTE_HOST
XML element attribute "host" describing the server definition's host. |
static java.lang.String |
ATTRIBUTE_ISSECURE
XML element attribute "issecure" describing the repository definition's secure status. |
static java.lang.String |
ATTRIBUTE_NAME
XML element attribute "name" describing the server definition's name. |
static java.lang.String |
ATTRIBUTE_PORT
XML element attribute describing the server definition's port number. |
static java.lang.String |
ATTRIBUTE_PROTOCOL
XML element attribute "protocol" describing the repository definition's protocol. |
static java.lang.String |
ATTRIBUTE_PROXY
XML element attribute "proxy" describing the repository definition's proxy URL. |
static java.lang.String |
ATTRIBUTE_UID
XML element attribute "uid" describing the server definition's unique id. |
static java.lang.String |
ELEMENT_NAME
XML element name "ServerDef" for a server definition. |
static java.lang.String |
PROPERTYNAME_AUTOCONNECT
PropertyChangeEvent property name signifying a change in the repository definition's auto connect preference. |
static java.lang.String |
PROPERTYNAME_DESCRIPTION
PropertyChangeEvent property name signifying a change in the repository definition's description. |
static java.lang.String |
PROPERTYNAME_DOMAIN
PropertyChangeEvent property name signifying a change in the repository definition's domain. |
static java.lang.String |
PROPERTYNAME_HOST
PropertyChangeEvent property name signifying a change in the repository definition's host. |
static java.lang.String |
PROPERTYNAME_ISSECURE
PropertyChangeEvent property name signifying a change in the definition's secure status. |
static java.lang.String |
PROPERTYNAME_NAME
PropertyChangeEvent property name signifying a change in the repository definition's name. |
static java.lang.String |
PROPERTYNAME_PORT
PropertyChangeEvent property name signifying a change in the repository definition's port. |
static java.lang.String |
PROPERTYNAME_PROTOCOL
PropertyChangeEvent property name signifying a change in the repository protocol. |
static java.lang.String |
PROPERTYNAME_PROXY
PropertyChangeEvent property name signifying a change in the repository definition's proxy string. |
Constructor Summary | |
---|---|
ServerDef()
|
|
ServerDef(java.lang.String name,
java.lang.String protocol,
java.lang.String host,
java.lang.String port)
Constructs a server definition using a default id. |
|
ServerDef(java.lang.String uid,
java.lang.String name,
java.lang.String protocol,
java.lang.String host,
java.lang.String port)
Constructs a server definition using the specified id. |
Method Summary | |
---|---|
void |
addAdvancedOptions(java.lang.String key,
java.lang.String value)
|
void |
addBaseLocation(java.lang.String newBase)
|
java.lang.Object |
clone()
Clones this ServerDef. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.util.Map |
getAdvancedOptions()
Gets a copy of the advanced options map. |
boolean |
getAuto()
Get the flag which indicates whether this definition represents a connection that should be made automatically. |
java.util.List |
getBaseLocations()
|
java.lang.String |
getDescription()
Get the description for this definition. |
java.lang.String |
getDomain()
Get the authentication domain name for this server. |
java.lang.String |
getHost()
Get the IP host name where the server is running. |
boolean |
getIsSecure()
Get the secure connection flag for this definition. |
java.lang.String |
getLocalizedResourceType()
Gets a localized value describing the resource's type. |
java.lang.String |
getLocalizedResourceTypeAndValue()
Gets a localized value describing the resource's type and value. |
java.lang.String |
getName()
Get the name for this definition. |
java.lang.String |
getPort()
Get the IP port the server is listening on. |
java.lang.String |
getProtocol()
Get the application protocol for this server. |
java.lang.String |
getProxy()
Get the proxy URL for this repository definition. |
java.lang.String |
getResourceID()
Gets the id that uniquely identifies the resource within a service's configuration. |
java.lang.String |
getResourceType()
Gets a value describing the resource's type. |
int |
getResourceTypeCode()
Gets the code describing the resource's type. |
java.lang.String |
getResourceValue()
Gets the value used to identify the service configuration resource. |
java.lang.String |
getUID()
Gets the unique ID. |
java.lang.String |
getUrl()
Get a URL that represents this definition. |
int |
hashCode()
Gets a hash code based upon this object's attributes. |
boolean |
isRequired()
Determines if this resource is required by the service's configuration. |
void |
removeBaseLocation(java.lang.String base)
|
void |
setAdvancedOptions(java.util.Map options)
|
void |
setAuto(boolean auto)
Set whether this definition represents a connection which should be made automatically. |
void |
setBaseLocations(java.util.List baseList)
|
void |
setDescription(java.lang.String description)
Set the description for this definition. |
void |
setDomain(java.lang.String domain)
Set the authentication domain name for this server. |
void |
setHost(java.lang.String host)
Set the IP host name for the host where the server is running. |
void |
setIsSecure(boolean secure)
Set the secure connection flag for this definition. |
void |
setName(java.lang.String name)
Set the name for this definition. |
void |
setPort(java.lang.String port)
Set the IP port the server is listening on. |
void |
setProtocol(java.lang.String protocol)
Set the application protocol for this server. |
void |
setProxy(java.lang.String proxy)
Set the proxy string for this repository definition. |
java.lang.String |
toString()
|
Field Detail |
---|
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String ATTRIBUTE_UID
public static final java.lang.String ATTRIBUTE_NAME
public static final java.lang.String ATTRIBUTE_HOST
public static final java.lang.String ATTRIBUTE_PORT
public static final java.lang.String ATTRIBUTE_AUTOCONNECT
public static final java.lang.String ATTRIBUTE_DESCRIPTION
public static final java.lang.String ATTRIBUTE_DOMAIN
public static final java.lang.String ATTRIBUTE_PROTOCOL
public static final java.lang.String ATTRIBUTE_PROXY
public static final java.lang.String ATTRIBUTE_ISSECURE
public static final java.lang.String PROPERTYNAME_PROTOCOL
public static final java.lang.String PROPERTYNAME_NAME
public static final java.lang.String PROPERTYNAME_DESCRIPTION
public static final java.lang.String PROPERTYNAME_HOST
public static final java.lang.String PROPERTYNAME_PORT
public static final java.lang.String PROPERTYNAME_DOMAIN
public static final java.lang.String PROPERTYNAME_AUTOCONNECT
public static final java.lang.String PROPERTYNAME_PROXY
public static final java.lang.String PROPERTYNAME_ISSECURE
Constructor Detail |
---|
public ServerDef()
public ServerDef(java.lang.String name, java.lang.String protocol, java.lang.String host, java.lang.String port)
name
- Server definition's name.protocol
- Server's protocol.host
- Server's host.port
- Server's port.public ServerDef(java.lang.String uid, java.lang.String name, java.lang.String protocol, java.lang.String host, java.lang.String port)
uid
- Unique identifier. If null
, then an ID will be generated.name
- Server definition's name.protocol
- Server's protocol.host
- Server's host.port
- Server's port.Method Detail |
---|
public void setAuto(boolean auto)
auto
- A flag indicating whether the repository this definition
represents should be connected to automatically.public boolean getAuto()
public java.lang.String getUID()
public java.lang.String getUrl()
String
value that represents this repository
definition.public void setHost(java.lang.String host)
host
- The host the repository server is running on.public java.lang.String getHost()
public void setPort(java.lang.String port)
port
- The IP port the repository server is listening on.public java.lang.String getPort()
public void setDomain(java.lang.String domain)
domain
- The authentication domain the server uses to authenticate
users.public java.lang.String getDomain()
public void setProtocol(java.lang.String protocol)
protocol
- The protocol for this server (ldap, omi, dav).public java.lang.String getProtocol()
public void setDescription(java.lang.String description)
description
- A string describing the repository represented by
this definition.public java.lang.String getDescription()
public void setName(java.lang.String name)
name
- A name for this definition. The name is really only useful
for definitions contained in the InformationService
configuration.public java.lang.String getName()
public void setProxy(java.lang.String proxy)
proxy
- The proxy URL.public java.lang.String getProxy()
public void setIsSecure(boolean secure)
secure
- True if a secure connection is to be used for
this repository.public boolean getIsSecure()
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.hashCode()
,
Hashtable
public final int hashCode()
hashCode
in class java.lang.Object
public void setAdvancedOptions(java.util.Map options)
public void addAdvancedOptions(java.lang.String key, java.lang.String value)
public java.util.Map getAdvancedOptions()
public java.lang.String toString()
toString
in class java.lang.Object
public void setBaseLocations(java.util.List baseList)
public void removeBaseLocation(java.lang.String base)
public void addBaseLocation(java.lang.String newBase)
public java.util.List getBaseLocations()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface ConsumedResourceInterface
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String getResourceID()
ConsumedResourceInterface
getResourceID
in interface ConsumedResourceInterface
public java.lang.String getResourceValue()
ConsumedResourceInterface
getResourceValue
in interface ConsumedResourceInterface
public java.lang.String getLocalizedResourceType()
ConsumedResourceInterface
getLocalizedResourceType
in interface ConsumedResourceInterface
public java.lang.String getLocalizedResourceTypeAndValue()
ConsumedResourceInterface
getLocalizedResourceTypeAndValue
in interface ConsumedResourceInterface
public java.lang.String getResourceType()
ConsumedResourceInterface
getResourceType
in interface ConsumedResourceInterface
public int getResourceTypeCode()
ConsumedResourceInterface
getResourceTypeCode
in interface ConsumedResourceInterface
public boolean isRequired()
ConsumedResourceInterface
isRequired
in interface ConsumedResourceInterface
true
if this resource is required by the service's
configuration.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |