Messaging is a better alternative to service topics for sending point-to-point requests.
@Deprecated public enum ServiceHeader extends Enum<ServiceHeader>
Enum Constant and Description |
---|
CLIENT_ID
Deprecated.
The client identifier.
|
REQUEST_ID
Deprecated.
The request identifier.
|
REQUEST_TYPE
Deprecated.
The request type.
|
SERVICE_TYPE
Deprecated.
The service type.
|
Modifier and Type | Method and Description |
---|---|
static ServiceHeader |
fromCode(String code)
Deprecated.
Returns ServiceHeader enum from code value.
|
String |
getCode()
Deprecated.
Returns a code value for the service header.
|
static ServiceHeader |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static ServiceHeader[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceHeader CLIENT_ID
public static final ServiceHeader REQUEST_ID
public static final ServiceHeader SERVICE_TYPE
public static final ServiceHeader REQUEST_TYPE
public static ServiceHeader[] values()
for (ServiceHeader c : ServiceHeader.values()) System.out.println(c);
public static ServiceHeader valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ServiceHeader fromCode(String code)
code
- the ServiceHeader codepublic String getCode()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.