org.das2.client.DasServer

Represents a remote Das 2.1 compliant server. Use the create() method to instantiate new Das 2 server objects. Each call to create() will only allocate a new server instance if no server matching the given URL has already been created.


authenticate

authenticate( String user, String passCrypt ) → Key

Handles key based authentication

Parameters

user - a String
passCrypt - a String

Returns:

org.das2.client.Key

[search for examples] [view on GitHub] [view on old javadoc] [view source]


changePassword

Deprecated:

create

create( java.net.URL url ) → DasServer

Get a Das2 server instance.

Parameters

url - A Das2 resource URL. Only the protocol, host, port and path information are used. All other items, such as a GET query are ignored.

Returns:

If a server matching the given url's protocol, host and path has already been created, that instance is returned, otherwise a new instance is created.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


createPlasmaWaveGroup

createPlasmaWaveGroup( ) → DasServer

return one DasServer to serve as an example.

Returns:

an org.das2.client.DasServer

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getDataSetList

getDataSetList( ) → TreeModel

Returns:

javax.swing.tree.TreeModel

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getDataSetListWithDiscovery

getDataSetListWithDiscovery( ) → TreeModel

Returns:

javax.swing.tree.TreeModel

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getHost

getHost( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getKey

getKey( String resource ) → Key

Parameters

resource - a String

Returns:

org.das2.client.Key

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getLogo

getLogo( ) → ImageIcon

Returns:

javax.swing.ImageIcon

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getName

getName( ) → String

Query the remote DasServer for it's id string. For Das 2.1 servers this is handled by sending the GET query ?server=id.

Returns:

A string containing the id, or the empty string if the query failed

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getPath

getPath( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getPort

getPort( ) → int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getProto

getProto( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getStandardDataStreamSource

getStandardDataStreamSource( java.net.URL url ) → StandardDataStreamSource

Parameters

url - an URL

Returns:

org.das2.client.StandardDataStreamSource

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getStreamDescriptor

getStreamDescriptor( java.net.URL dataSetID ) → StreamDescriptor

Parameters

dataSetID - an URL

Returns:

org.das2.stream.StreamDescriptor

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getURL

getURL( ) → String

Provide the Das2 Server location. Note that more than one Das2 server may be present on a single host web-site.

Returns:

A URL string containing protocol, host and path information.

[search for examples] [view on GitHub] [view on old javadoc] [view source]

getURL( String formData ) → URL

groups

Deprecated: this is not used.

readServerResponse

Deprecated:

setKey

setKey( org.das2.client.Key key ) → void

Parameters

key - a Key

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


toString

toString( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]