public final class Utilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
XML_CONTENT_TYPE
The content type "text/xml"
|
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeXml(String value) |
static void |
fireDelegate(MpnsNotification message,
org.apache.http.HttpResponse response,
MpnsDelegate delegate) |
static int |
getTileDelivery(DeliveryClass delivery) |
static String |
ifNonNull(Object cond,
String value)
Returns
value is the cond is non-null; otherwise
returns an empty String. |
static MpnsResponse |
logicalResponseFor(org.apache.http.HttpResponse response) |
static org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager |
poolManager(int maxConnections) |
static byte[] |
toUTF8(String content) |
static String |
xmlElement(String name,
String content) |
static String |
xmlElementClear(String name,
String content) |
public static final String XML_CONTENT_TYPE
public static org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager poolManager(int maxConnections)
public static String ifNonNull(Object cond, String value)
value is the cond is non-null; otherwise
returns an empty String.public static byte[] toUTF8(String content)
public static MpnsResponse logicalResponseFor(org.apache.http.HttpResponse response)
public static void fireDelegate(MpnsNotification message, org.apache.http.HttpResponse response, MpnsDelegate delegate)
public static int getTileDelivery(DeliveryClass delivery)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.