Base class for client adapter objects. The only purpose of this class is to centralize the handling of the local adapter factory used by the client adapters to instantiate new adapters.
@Deprecated public class ClientObject extends Object
Modifier | Constructor and Description |
---|---|
protected |
ClientObject(LocalAdapterFactory factory)
Deprecated.
Creates a basic client adapter that uses the given factory
to create new adapters.
|
Modifier and Type | Method and Description |
---|---|
protected LocalAdapterFactory |
getFactory()
Deprecated.
Returns the local adapter factory used to create new adapters.
|
protected Item |
getItem(Session session,
RemoteItem remote)
Deprecated.
Utility method to create a local adapter for a remote item.
|
protected Node |
getNode(Session session,
RemoteNode remote)
Deprecated.
Utility method to create a local adapter for a remote node.
|
protected NodeType[] |
getNodeTypeArray(RemoteNodeType[] remotes)
Deprecated.
Utility method for creating an array of local node type adapters
for an array of remote node types.
|
protected ClientObject(LocalAdapterFactory factory)
factory
- local adapter factoryprotected LocalAdapterFactory getFactory()
protected Item getItem(Session session, RemoteItem remote)
Property
,
a Node
, or an Item
adapter using
the local adapter factory.
If the remote item is a RemoteNode
, this method delegates
to getNode(Session, RemoteNode)
.
session
- current sessionremote
- remote itemprotected Node getNode(Session session, RemoteNode remote)
Node
,
a VersionHistory
, or a
Version
adapter using
the local adapter factory.session
- current sessionremote
- remote nodeprotected NodeType[] getNodeTypeArray(RemoteNodeType[] remotes)
A null
input is treated as an empty array.
remotes
- remote node typesCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.