Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Adaptive Access Manager
11g Release 2 (11.1.2)

E27208-01


com.bharosa.vcrypt.common.data
Class OAAMIPData

java.lang.Object
  extended by com.bharosa.vcrypt.common.data.OAAMIPData

All Implemented Interfaces:
Serializable

public class OAAMIPData
extends Object
implements Serializable
See Also:
Serialized Form

Field Summary
protected  Double latitude
          The latitude of the location.
protected  Double locationAccuracy
          This attribute describes the accuracy of the location information (longitude, latitude pair).
protected  int locationAccuracyUnits
          This attribute along with locationAccuracy attribute describes the accuracy of the location information (longitude, latitude pair).
protected  Date locationAcquireTime
          This date-time field is the time at which mobile device acquired the location co-prdinates.
protected  int locationAcquireType
          This attribute indicates the type / method by which location was acquired by the mobile device.
protected  Double longitude
          The longitude of the location.
protected  String proxyIP
          This attribute is the proxy IP address of the session if proxy is present.
protected  String remoteHost
          This attribute captures the remote Host machine name from which the request somes in.
protected  String remoteIP
          This attribute captures the IP address of the session in String format.

 

Constructor Summary
OAAMIPData(String aRemoteIP, Double aLongitude, Double aLatitude)
           

 

Method Summary
 Double getLatitude()
           
 Double getLocationAccuracy()
           
 int getLocationAccuracyUnits()
           
 Date getLocationAcquireTime()
           
 int getLocationAcquireType()
           
 Double getLongitude()
           
 String getProxyIP()
           
 String getRemoteHost()
           
 String getRemoteIP()
           
 void setLatitude(Double latitude)
          Method to set the latitude.
 void setLocationAccuracy(Double locationAccuracy)
          Method to set the locationAccuracy.
 void setLocationAccuracyUnits(int aLocationAccuracyUnits)
          Method to set the locationAccuracyUnits.
 void setLocationAcquireTime(Date locationAcquireTime)
          Method to set the locationAcquireTime.
 void setLocationAcquireType(int aLocationAcquireType)
          Method to set location accuracy type.
 void setLongitude(Double longitude)
          Method to set the longitude attribute.
 void setProxyIP(String proxyIP)
          Method to set proxyIP.
 void setRemoteHost(String remoteHost)
           
 String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

remoteIP

protected String remoteIP
This attribute captures the IP address of the session in String format. (A.B.C.D)

remoteHost

protected String remoteHost
This attribute captures the remote Host machine name from which the request somes in.

proxyIP

protected String proxyIP
This attribute is the proxy IP address of the session if proxy is present. (in A.B.C.D format)

longitude

protected Double longitude
The longitude of the location. Min value is -180 (negative values for western hemisphere) and max value is +180 (positive values for eastern hemispehre).

latitude

protected Double latitude
The latitude of the location. Min value is -90 (negative values for sounthern hemisphere) and max value is +90 (positive values for northern hemisphere)

locationAccuracy

protected Double locationAccuracy
This attribute describes the accuracy of the location information (longitude, latitude pair). This attribute along with location accuracy units will indicate the accuracy. Typical example will be say within 2 meters of the indicated co-ordinates. For this example the value of this attribute will be 2.0 and the value of location accuracy type will be a enumeration pointing to metere.

locationAccuracyUnits

protected int locationAccuracyUnits
This attribute along with locationAccuracy attribute describes the accuracy of the location information (longitude, latitude pair). This attribute along with location accuracy units will indicate the accuracy. Typical example will be say within 2 meters of the indicated co-ordinates. For this example the value of this attribute will be a enumeration pointing to meter and value of locationAccuracy attribute will be 2.0.

locationAcquireType

protected int locationAcquireType
This attribute indicates the type / method by which location was acquired by the mobile device. This is enumeration of the type mobile.location.acquire.type.enum. Some of the possible integer values will correspond to gps, asisted gps, wifi hotspot etc.

locationAcquireTime

protected Date locationAcquireTime
This date-time field is the time at which mobile device acquired the location co-prdinates.

Constructor Detail

OAAMIPData

public OAAMIPData(String aRemoteIP,
                  Double aLongitude,
                  Double aLatitude)
           throws Exception
Throws:
Exception

Method Detail

getRemoteIP

public String getRemoteIP()
Returns:
Returns the String representing remoteIP attribute. (Can be null)

setProxyIP

public void setProxyIP(String proxyIP)
                throws Exception
Method to set proxyIP.
Parameters:
proxyIP - The proxyIP to be set.
Throws:
Exception

getProxyIP

public String getProxyIP()
Returns:
Returns String representing proxyIP attribute.

setLongitude

public void setLongitude(Double longitude)
Method to set the longitude attribute. This methods validates the values. Anything less than -180 will be set as -180.0 and anything more than +180 will be set as +180.0
Parameters:
longitude - The longitude value to be set.

getLongitude

public Double getLongitude()
Returns:
Returns the value of longitude. (Can be null)

setLatitude

public void setLatitude(Double latitude)
Method to set the latitude. This method validate the values. If param value is less than -90 then the value will be set to -90. If param value is more than +90 then the value will be set to +90.
Parameters:
latitude - The latitude to be set.

getLatitude

public Double getLatitude()
Returns:
Returns the value of latitude.

setLocationAccuracy

public void setLocationAccuracy(Double locationAccuracy)
Method to set the locationAccuracy. This method validates the input. If input is less than 0 then the value is set to 0.
Parameters:
locationAccuracy -

getLocationAccuracy

public Double getLocationAccuracy()
Returns:
Returns the locationAccuracy. Can be null.

setLocationAccuracyUnits

public void setLocationAccuracyUnits(int aLocationAccuracyUnits)
                              throws Exception
Method to set the locationAccuracyUnits.
Parameters:
aLocationAccuracyUnits - This should be integere representing location.accuracy.type.enum
Throws:
Exception

getLocationAccuracyUnits

public int getLocationAccuracyUnits()
Returns:
Returns the locationAccuracyUnits.

setLocationAcquireType

public void setLocationAcquireType(int aLocationAcquireType)
                            throws Exception
Method to set location accuracy type.
Parameters:
aLocationAcquireType - Should be a integer poinint to one of location.acquire.type.enum.
Throws:
Exception

getLocationAcquireType

public int getLocationAcquireType()
Returns:
Returns the value of the location acquire type.

setLocationAcquireTime

public void setLocationAcquireTime(Date locationAcquireTime)
Method to set the locationAcquireTime.
Parameters:
locationAcquireTime -

getLocationAcquireTime

public Date getLocationAcquireTime()
Returns:
Returns the value of locationAcquireTime. Can be null.

setRemoteHost

public void setRemoteHost(String remoteHost)

getRemoteHost

public String getRemoteHost()

toString

public String toString()
Overrides:
toString in class Object

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Adaptive Access Manager
11g Release 2 (11.1.2)

E27208-01


Copyright © 2007, 2012, Oracle and/or its affiliates. All rights reserved.