org.apache.jackrabbit.rmi.server.principal
Class ServerPrincipalIterator

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.apache.jackrabbit.rmi.server.ServerObject
                  extended by org.apache.jackrabbit.rmi.server.iterator.ServerIterator
                      extended by org.apache.jackrabbit.rmi.server.principal.ServerPrincipalIterator
All Implemented Interfaces:
Serializable, Remote, RemoteIterator

public class ServerPrincipalIterator
extends ServerIterator

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerPrincipalIterator(Iterator<Principal> iterator, RemoteAdapterFactory factory, int maxBufferSize)
           
 
Method Summary
protected  Object getRemoteObject(Object object)
          Returns a remote adapter for the given local object.
 
Methods inherited from class org.apache.jackrabbit.rmi.server.iterator.ServerIterator
getSize, nextObjects, skip
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerPrincipalIterator

public ServerPrincipalIterator(Iterator<Principal> iterator,
                               RemoteAdapterFactory factory,
                               int maxBufferSize)
                        throws RemoteException
Throws:
RemoteException
Method Detail

getRemoteObject

protected Object getRemoteObject(Object object)
                          throws RemoteException
Description copied from class: ServerIterator
Returns a remote adapter for the given local object. This abstract method is used by #nextObjects(int) to convert the local objects to remote references to be sent to the client.

Subclasses should implement this method to use the remote adapter factory to create remote adapters of the specific element type.

Specified by:
getRemoteObject in class ServerIterator
Parameters:
object - local object
Returns:
remote adapter
Throws:
RemoteException - on RMI errors


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.