public static class DefaultPushSender.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
DefaultPushSender |
build()
Build the
DefaultPushSender. |
DefaultPushSender.Builder |
customTrustStore(String trustStorePath,
String trustStoreType,
String trustStorePassword)
Set a custom trustStore.
|
DefaultPushSender.Builder |
masterSecret(String masterSecret)
Set the masterSecret used to authenticate against the Push Server.
|
DefaultPushSender.Builder |
proxy(String proxyHost,
int proxyPort)
Specify proxy that should be used to connect.
|
DefaultPushSender.Builder |
proxyPassword(String proxyPassword)
Sets password used with specified user.
|
DefaultPushSender.Builder |
proxyType(Proxy.Type proxyType)
Configure type of proxy.
|
DefaultPushSender.Builder |
proxyUser(String proxyUser)
If proxy needs authentication, specify User.
|
DefaultPushSender.Builder |
pushApplicationId(String pushApplicationId)
Specifies which Push Application the sender will be using.
|
public DefaultPushSender.Builder pushApplicationId(String pushApplicationId)
pushApplicationId - The pushApplicationIDDefaultPushSender.Builder instancepublic DefaultPushSender.Builder masterSecret(String masterSecret)
masterSecret - The masterSecretDefaultPushSender.Builder instancepublic DefaultPushSender.Builder customTrustStore(String trustStorePath, String trustStoreType, String trustStorePassword)
trustStorePath - The trustStore file path.trustStoreType - The trustStore type. If null the default type iss used.trustStorePassword - The trustStore password.DefaultPushSender.Builder instancepublic DefaultPushSender.Builder proxy(String proxyHost, int proxyPort)
proxyHost - Hostname of proxy.proxyPort - Port of proxy.DefaultPushSender.Builder instancepublic DefaultPushSender.Builder proxyUser(String proxyUser)
proxyUser - Username for authentication.DefaultPushSender.Builder instancepublic DefaultPushSender.Builder proxyPassword(String proxyPassword)
proxyPassword - Password for user authentication.DefaultPushSender.Builder instancepublic DefaultPushSender.Builder proxyType(Proxy.Type proxyType)
proxyType - Type of proxy asDefaultPushSender.Builder instancepublic DefaultPushSender build()
DefaultPushSender.DefaultPushSenderCopyright © 2015 JBoss by Red Hat. All Rights Reserved.