javax.datamining.resource
Interface ConnectionSpec


public interface ConnectionSpec

A ConnectionSpec encapsulates the DME instance at a URI and user authentication details. The ConnectionFactory supports the creation of the ConnectionSpec.

Author:
JSR-73 Java Data Mining Expert Group

Method Summary
 java.util.Locale getLocale()
          Returns the locale of the connection.
 java.lang.String getName()
          Returns the user name.
 java.lang.String getURI()
          Returns the URI to access the DME.
 void setLocale(java.util.Locale locale)
          Sets the locale of the connection to be created.
 void setName(java.lang.String userName)
          Sets the user name.
 void setPassword(java.lang.String password)
          Sets the password associated with the supplied user name.
 void setURI(java.lang.String uri)
          Sets the URI.
 

Method Detail

getLocale

public java.util.Locale getLocale()
Returns the locale of the connection.

Returns:
Locale

getName

public java.lang.String getName()
Returns the user name.

Returns:
String

getURI

public java.lang.String getURI()
Returns the URI to access the DME.

Returns:
String

setLocale

public void setLocale(java.util.Locale locale)
Sets the locale of the connection to be created. This locale is to be used to convert locale specific information presented from the server.

Parameters:
locale -
Returns:
void

setName

public void setName(java.lang.String userName)
Sets the user name.

Parameters:
userName - A new user name for the specified DME.
Returns:
void

setPassword

public void setPassword(java.lang.String password)
Sets the password associated with the supplied user name.

Parameters:
password - The password for the specified user name.
Returns:
void

setURI

public void setURI(java.lang.String uri)
Sets the URI.

Parameters:
uri - A new URI of the DME to be connected.
Returns:
void