Class EndPoint
- java.lang.Object
-
- com.deviceatlas.cloud.deviceidentification.endpoint.EndPoint
-
public class EndPoint extends java.lang.Object
Defines a cloud end-point (server). Copyright (c) DeviceAtlas Limited 2023. All Rights Reserved.
-
-
Field Summary
Fields Modifier and Type Field Description double
avg
end-point ranking test results - when the API checks the end-point the average of test request times will be put in this propertyjava.lang.String
headersPath
java.lang.String
host
end-point host base URLjava.util.List<java.lang.Double>
latencies
end-point ranking test results - when the API checks the end-point test request times will be put in this listjava.lang.String
path
end-point host URL pathjava.lang.String
port
end-point host port
-
Constructor Summary
Constructors Constructor Description EndPoint()
Creates DeviceAtlas EndPoint objectEndPoint(java.lang.String host, java.lang.String port)
Creates DeviceAtlas EndPoint objectEndPoint(java.lang.String host, java.lang.String port, java.lang.String path)
Creates DeviceAtlas EndPoint object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fromMap(java.util.Map<java.lang.String,java.lang.Object> server)
Fill EndPoint object with data from HashMapjava.lang.String
getHeadersUrl()
Get server connectable URL for the headers pathjava.lang.String
getUrl()
Get server connectable URLjava.util.Map
toMap()
Return a HashMap of EndPoint object data
-
-
-
Field Detail
-
host
public java.lang.String host
end-point host base URL
-
port
public java.lang.String port
end-point host port
-
path
public java.lang.String path
end-point host URL path
-
headersPath
public java.lang.String headersPath
-
latencies
public java.util.List<java.lang.Double> latencies
end-point ranking test results - when the API checks the end-point test request times will be put in this list
-
avg
public double avg
end-point ranking test results - when the API checks the end-point the average of test request times will be put in this property
-
-
Constructor Detail
-
EndPoint
public EndPoint()
Creates DeviceAtlas EndPoint object
-
EndPoint
public EndPoint(java.lang.String host, java.lang.String port)
Creates DeviceAtlas EndPoint object- Parameters:
host
- EndPoint host addressport
- EndPoint port number
-
EndPoint
public EndPoint(java.lang.String host, java.lang.String port, java.lang.String path)
Creates DeviceAtlas EndPoint object- Parameters:
host
- EndPoint host addressport
- EndPoint port numberpath
- EndPoint URL path
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
Get server connectable URL- Returns:
- end-point full URL (host+port+path)
-
getHeadersUrl
public java.lang.String getHeadersUrl()
Get server connectable URL for the headers path
-
toMap
public java.util.Map toMap()
Return a HashMap of EndPoint object data- Returns:
- HashMap of EndPoint object data
-
fromMap
public void fromMap(java.util.Map<java.lang.String,java.lang.Object> server)
Fill EndPoint object with data from HashMap- Parameters:
server
- server-data HashMap
-
-