|
Oracle® On Track Communication SDK Documentation Release 1(1.0) E20955-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
waggle.core.api.XAPIManager
public final class XAPIManager
Manager class for the XAPI interface.
Field Summary | |
---|---|
static String |
ENABLE_SELF_SIGNED_CERTIFICATES Property name to enable self signed certificates. |
Method Summary | ||
---|---|---|
static
|
call(Class<T> interfaceClass) Perform a local or remote API call using the XAPI singleton. |
|
static XAPI |
getInstance() Get the XAPI singleton. |
|
static XHTTPSession |
getSession() Get the Session for the XAPI singleton. |
|
static XAPI |
newInstance() Get a new XAPI instance to be used for a separate session in say another thread. |
|
static void |
setAcceptEncoding(String acceptEncoding) Set the Accept-Encoding header for the XAPI singleton. |
|
static void |
setAcceptLanguage(String acceptLanguage) Set the Accept-Language header for the XAPI singleton. |
|
static void |
setClientID(long clientID) Set the Client ID for the XAPI singleton. |
|
static void |
setClientID(XClientID clientID) Set the Client ID for the XAPI singleton. |
|
static void |
setOnTrackAgent(String onTrackAgent) Set the On Track Agent for the XAPI singleton. |
|
static void |
setProtocolXML(boolean protocolXML) Set the Protocol for the XAPI singleton to XML. |
|
static void |
setRandomID(String randomID) Set the Random ID for the XAPI singleton. |
|
static void |
setSession(String host, String context) Set the HTTP Session for the specified host and context for the XAPI singleton. |
|
static void |
setSession(String host, String context, String proxyHost, int proxyPort) Set the HTTP Session for the specified host and context using the specified proxy host and port for the XAPI singleton. |
|
static void |
setTimeZone(TimeZone timeZone) Set the time zone header for the XAPI singleton. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ENABLE_SELF_SIGNED_CERTIFICATES
Method Detail |
---|
public static XAPI getInstance()
public static XAPI newInstance()
public static void setSession(String host, String context)
host
- The host.context
- The context.public static void setSession(String host, String context, String proxyHost, int proxyPort)
host
- The host.context
- The context.proxyHost
- The proxy host.proxyPort
- The proxy port.public static XHTTPSession getSession()
public static void setProtocolXML(boolean protocolXML)
protocolXML
- Set true for XML and set false for JSON.public static void setClientID(XClientID clientID)
clientID
- The Client ID.public static void setClientID(long clientID)
clientID
- The Client ID for the XAPI singleton.public static void setRandomID(String randomID)
randomID
- The random ID for the XAPI singleton.public static void setOnTrackAgent(String onTrackAgent)
onTrackAgent
- The On Track Agent for the XAPI singleton.public static void setAcceptLanguage(String acceptLanguage)
acceptLanguage
- The Accept-Language header for the XAPI singleton.public static void setAcceptEncoding(String acceptEncoding)
acceptEncoding
- The Accept-Encoding header for the XAPI singleton.public static void setTimeZone(TimeZone timeZone)
timeZone
- The time zone header for the XAPI singleton.public static <T extends XAPIInterface.Server> T call(Class<T> interfaceClass)
T
- The server interface class.interfaceClass
- The server API interface.
|
Oracle® On Track Communication SDK Documentation Release 1(1.0) E20955-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |