Name
Package javax.xml.rpc.holders
Synopsis
This package contains a set of classes that are used to simulate method arguments that can be used to receive output values, a feature that is not directly supported by the Java programming language. A holder argument is used wherever the WSDL definition calls for an output or input/output argument. In terms of method call syntax, a service endpoint interface method that uses a holder class looks like this:
public void methodName(IntHolder arg) throws RemoteException;
All holders implement the Holder interface, which
is a marker that does not declare any methods. Each holder class can
contain a value of a specific type. There are 21 pre-defined holder
classes in the javax.xml.rpc.holders package,
which correspond to the Java primitive types (such as
int), their object wrapper counterparts (such as
Integer), and a small number of special cases
(such as QNameHolder). A simple naming convention
applies to the standard wrapper classes:
For a Java primitive type, the class name is formed by capitalizing the first letter of the type name and appending
Holder. Hence, theIntHolderclass is the holder class for a primitiveint,ByteHoldercorresponds tobyte, and so on.For a primitive wrapper type, the class name consists of the wrapper class name followed by
WrapperHolder. The holder for theIntegerclass is thereforeIntegerWrapperHolder
JAX-RPC is capable of generating additional holder classes for method arguments of other types that are defined ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access