com.ibm.rfid.premises.app.access
Class PremisesContext

java.lang.Object
  extended by com.ibm.rfid.premises.app.access.PremisesContext

Deprecated. As of IBM WebSphere Sensor Events v6.2, replaced by #SensorEventsAPIContext

@Deprecated
public class PremisesContext
extends java.lang.Object


Method Summary
static ALEAccess getALEAccess()
          Deprecated.  
static ALEAccess getALEAccess(java.lang.String hostname, java.lang.String alePort)
          Deprecated.  
static java.lang.String getAlePort()
          Deprecated. get port used for ALE web service access (default: 9080).
static java.lang.String getHostname()
          Deprecated.  
static java.lang.String getPort()
          Deprecated. get port used for web service access (default: 9080).
static PremisesAccess getPremisesAccess()
          Deprecated. This assumes the hostname has been set using the method setHostname(String).
static PremisesAccess getPremisesAccess(java.lang.String hostname)
          Deprecated.  
static PremisesAccess getPremisesAccess(java.lang.String hostname, java.lang.String port)
          Deprecated.  
static PremisesAccess getPremisesAccess(java.lang.String hostname, java.lang.String port, java.lang.String alePort)
          Deprecated.  
static void setAlePort(java.lang.String port)
          Deprecated. set port used for ALE web service access (default: 9080)
static void setHostname(java.lang.String hostname)
          Deprecated. This function is only needed if you are intending to access the IBM WebSphere Sensor Events Server APIs remotely.
static void setPort(java.lang.String port)
          Deprecated. set port used for web service access (default: 9080)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setHostname

public static void setHostname(java.lang.String hostname)
Deprecated. 
This function is only needed if you are intending to access the IBM WebSphere Sensor Events Server APIs remotely.

An example of a hostname String needed for accessing a IBM WebSphere Sensor Events Server at IP address 192.168.1.1 with hostname wse.server.ibm.com would be "192.168.1.1" or "wse.server.ibm.com".

Parameters:
hostname - the hostname of a remote IBM WebSphere Sensor Events Server installation needed to access the IBM WebSphere Sensor Events Web Service interface.

getHostname

public static java.lang.String getHostname()
Deprecated. 
Returns:
a String representing the IBM WebSphere Sensor Events Server hostname.
See Also:
setHostname(String)

getPremisesAccess

public static PremisesAccess getPremisesAccess(java.lang.String hostname)
Deprecated. 
Parameters:
hostname - is the hostname of the local or remote IBM WebSphere Sensor Events Server installation. If this API call is being made on the machine that the IBM WebSphere Sensor Events Server is installed on, it will return a PremisesAccessLocal singleton. If on a different machine, a PremisesAccessRemote singleton will be returned and default web service port (9080) will be used.
Returns:
a PremisesAccess object
See Also:
PremisesAccess, getPremisesAccess(String, String), PremisesAccessRemote, PremisesAccessLocal, setHostname(String)

getPremisesAccess

public static PremisesAccess getPremisesAccess(java.lang.String hostname,
                                               java.lang.String port)
Deprecated. 
Parameters:
hostname - is the hostname of the local or remote IBM WebSphere Sensor Events Server installation. If this API call is being made on the machine that the IBM WebSphere Sensor Events Server is installed on, it will return a PremisesAccessLocal singleton. If on a different machine, a PremisesAccessRemote singleton will be returned.
port - is the port to be used to make a web services (remote) call to both IBM WebSphere Sensor Events Server base APIs and ALE APIs. If ALE uses a different port use getPremisesAccess(String, String, String). If port is null or empty, default of 9080 will be used.
Returns:
a PremisesAccess object
See Also:
PremisesAccess, PremisesAccessRemote, PremisesAccessLocal, setHostname(String)

getPremisesAccess

public static PremisesAccess getPremisesAccess(java.lang.String hostname,
                                               java.lang.String port,
                                               java.lang.String alePort)
Deprecated. 
Parameters:
hostname - is the hostname of the local or remote IBM WebSphere Sensor Events Server installation. If this API call is being made on the machine that the IBM WebSphere Sensor Events Server is installed on, it will return a PremisesAccessLocal singleton. If on a different machine, a PremisesAccessRemote singleton will be returned.
port - is the port to be used to make a web services (remote) call to IBM WebSphere Sensor Events Server base APIs
alePort - is the port to be used to make a web services (remote) call to IBM WebSphere Sensor Events Server ALE APIs
Returns:
a PremisesAccess object

getPremisesAccess

public static PremisesAccess getPremisesAccess()
Deprecated. 
This assumes the hostname has been set using the method setHostname(String). If it has not been set, expect to see PremisesAccessException exceptions unless in a "local" environment.

Returns:
a PremisesAccess object
See Also:
getPremisesAccess(String), setHostname(String)

getALEAccess

public static ALEAccess getALEAccess(java.lang.String hostname,
                                     java.lang.String alePort)
Deprecated. 
Parameters:
hostname - hostname of the IBM WebSphere Sensor Events Server
alePort - port Ale is to use for triggers
Returns:
ALEAccess object

getALEAccess

public static ALEAccess getALEAccess()
Deprecated. 
Returns:
AleAccess object

getPort

public static java.lang.String getPort()
Deprecated. 
get port used for web service access (default: 9080).

Returns:
port. If port has not been set or is empty, default (9080) will be returned.

setPort

public static void setPort(java.lang.String port)
Deprecated. 
set port used for web service access (default: 9080)

Parameters:
port - port to be set

getAlePort

public static java.lang.String getAlePort()
Deprecated. 
get port used for ALE web service access (default: 9080).

Returns:
port. If port has not been set or is empty, default (9080) will be returned.

setAlePort

public static void setAlePort(java.lang.String port)
Deprecated. 
set port used for ALE web service access (default: 9080)

Parameters:
port - port to be set


Copyright © 2005 - 2009 IBM Corp. All Rights Reserved.