Protocol Class
- public class Protocol
extends Object
implements Serializable
The Protocol class is an enumerated type that defines the set of
supported invocation protocols available for Weblogic Workshop component
invocation.
A Protocol instance has an ID, which is guaranteed to be unique and can
be safely used in switch statement against the various ID_xxx values,
and a name, which corresponds to the protocol name used to enable/disable
the protocol in the protocol tag.
It is also safe to use object equality to compare protocol values
obtained as parameters or via deserialization to the defined
constants.
For example:
Protocol.getProtocol(ID_HTTP_GET) == Protocol.HTTP_GET
is always guaranteed to be true.
-
Hierarchy
-
Object
Protocol
-
All Implemented Interfaces
-
Serializable
HTTP_GET
public static final Protocol
HTTP_GET
HTTP_POST
public static final Protocol
HTTP_POST
HTTP_SOAP
public static final Protocol
HTTP_SOAP
HTTP_SOAP12
public static final Protocol
HTTP_SOAP12
HTTP_XML
public static final Protocol
HTTP_XML
ID_HTTP_GET
public static final int ID_HTTP_GET
- Value indicating query-style invocation using HTTP GET
ID_HTTP_POST
public static final int ID_HTTP_POST
- Value indicating query-style invocation using HTTP POST
ID_HTTP_SOAP
public static final int ID_HTTP_SOAP
- Value indicating SOAP invocation using HTTP (POST)
ID_HTTP_SOAP12
public static final int ID_HTTP_SOAP12
- Value indicating SOAP12 invocation using HTTP (POST)
ID_HTTP_XML
public static final int ID_HTTP_XML
- Value indicating raw XML using HTTP (POST)
ID_JMS_SOAP
public static final int ID_JMS_SOAP
- Value indicating SOAP invocation using JMS
ID_JMS_SOAP12
public static final int ID_JMS_SOAP12
- Value indicating SOAP invocation using JMS
ID_JMS_XML
public static final int ID_JMS_XML
- Value indicating raw XML using HTTP (POST)
JAVA
public static final Protocol
JAVA
JMS_SOAP
public static final Protocol
JMS_SOAP
JMS_SOAP12
public static final Protocol
JMS_SOAP12
JMS_XML
public static final Protocol
JMS_XML
getID() Method
public int getID()
Returns the integer identifier associated with the protocol.
getName() Method
public String
getName()
Returns the protocol name for the protocol. This name corresponds to
the tag name associated with the protocol for the protocol tag.
getProtocolByID(int) Method
public static Protocol
getProtocolByID(int id)
Returns the Protocol object selected by protocol id
getProtocolByName(String) Method
public static Protocol
getProtocolByName(String
name)
Returns the Protocol object selected by protocol name
isSoap(Protocol) Method
public static boolean isSoap(Protocol
p)
isSoap11(Protocol) Method
public static boolean isSoap11(Protocol
p)
isSoap12(Protocol) Method
public static boolean isSoap12(Protocol
p)
toString() Method
public String
toString()
-
Overrides
-
Object.toString()