Package com.bosch.wdw
Class PushConfig
- java.lang.Object
-
- com.bosch.wdw.PushConfig
-
public class PushConfig extends java.lang.ObjectThe
PushConfigholds all config variables required for the push module.The
PushConfigis provided to theWDWBuilder. It contains the following variables:- pushServerURL - URL provided by Bosch.
- variantID - variantID provided by Bosch.
- variantSecret - variantSecret provided by Bosch.
-
-
Constructor Summary
Constructors Constructor Description PushConfig(java.net.URI pushServerURL, java.lang.String variantID, java.lang.String variantSecret)Constructs aPushConfigobject to register with the WDW push provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URIgetPushServerURL()Returns the pushServerURLjava.lang.StringgetVariantID()Returns the variantIDjava.lang.StringgetVariantSecret()Returns the variantSecretjava.lang.StringtoString()
-
-
-
Constructor Detail
-
PushConfig
public PushConfig(java.net.URI pushServerURL, java.lang.String variantID, java.lang.String variantSecret)Constructs aPushConfigobject to register with the WDW push provider.- Parameters:
pushServerURL- represents the server URL with which to register.variantID- represents the unique variant identifier.variantSecret- represents the variant secret key.
-
-
Method Detail
-
getVariantID
public java.lang.String getVariantID()
Returns the variantID- Returns:
- the variant identifier as String.
-
getVariantSecret
public java.lang.String getVariantSecret()
Returns the variantSecret- Returns:
- the variant secret as String.
-
getPushServerURL
public java.net.URI getPushServerURL()
Returns the pushServerURL- Returns:
- the server URL as
URI.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-