org.outerj.daisy.repository.clientimpl
Class RemoteRepositoryImpl

java.lang.Object
  extended by org.outerj.daisy.repository.commonimpl.RepositoryImpl
      extended by org.outerj.daisy.repository.clientimpl.RemoteRepositoryImpl
All Implemented Interfaces:
org.outerj.daisy.repository.Repository

public class RemoteRepositoryImpl
extends org.outerj.daisy.repository.commonimpl.RepositoryImpl


Field Summary
 
Fields inherited from class org.outerj.daisy.repository.commonimpl.RepositoryImpl
user
 
Constructor Summary
RemoteRepositoryImpl(org.outerj.daisy.repository.commonimpl.CommonRepository delegate, org.outerj.daisy.repository.commonimpl.AuthenticatedUser user, RemoteRepositoryManager.Context context)
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getBaseURL()
           
 DaisyHttpClient getHttpClient()
           
 org.apache.commons.httpclient.methods.GetMethod getResource(java.lang.String path, java.util.Map parameters)
          Communicate to the daisy server using HTTP.
 
Methods inherited from class org.outerj.daisy.repository.commonimpl.RepositoryImpl
addListener, createDocument, createDocument, createDocument, createDocument, createVariant, createVariant, deleteDocument, deleteVariant, deleteVariant, getAccessManager, getActiveRoleIds, getActiveRolesDisplayNames, getAvailableRoles, getAvailableVariants, getClientVersion, getCollectionManager, getCommentManager, getCommonRepository, getDocument, getDocument, getDocument, getDocument, getExtension, getPartData, getPartData, getQueryManager, getRepositorySchema, getServerVersion, getUser, getUserDisplayName, getUserId, getUserInfoAsXml, getUserLogin, getUserManager, getVariantManager, isInRole, isInRole, removeListener, setActiveRoleIds, switchRole
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteRepositoryImpl

public RemoteRepositoryImpl(org.outerj.daisy.repository.commonimpl.CommonRepository delegate,
                            org.outerj.daisy.repository.commonimpl.AuthenticatedUser user,
                            RemoteRepositoryManager.Context context)
Method Detail

getResource

public org.apache.commons.httpclient.methods.GetMethod getResource(java.lang.String path,
                                                                   java.util.Map parameters)
                                                            throws org.outerj.daisy.repository.RepositoryException
Communicate to the daisy server using HTTP. Advantage of using this method (instead of doing it just yourself) is that the authentication information will be automatically passed on, and if the result is an error appropriate exceptions will be thrown.

The performed request is a GET request.

Throws:
org.outerj.daisy.repository.RepositoryException

getHttpClient

public DaisyHttpClient getHttpClient()

getBaseURL

public java.lang.String getBaseURL()

clone

public java.lang.Object clone()
Overrides:
clone in class org.outerj.daisy.repository.commonimpl.RepositoryImpl


Copyright © -2012 . All Rights Reserved.