org.modeshape.web.jcr.rest
Class ServerResource

java.lang.Object
  extended by org.modeshape.web.jcr.rest.AbstractJcrResource
      extended by org.modeshape.web.jcr.rest.ServerResource

@Immutable
public class ServerResource
extends AbstractJcrResource

RESTEasy handler to provide the JCR repositories hosted on the server at the URI below. Please note that this URI assumes a context of /resources for the web application.

URI Pattern Description Supported Methods
/resources returns a list of accessible repositories GET


Field Summary
 
Fields inherited from class org.modeshape.web.jcr.rest.AbstractJcrResource
EMPTY_REPOSITORY_NAME, EMPTY_WORKSPACE_NAME, URL_ENCODER
 
Constructor Summary
ServerResource()
           
 
Method Summary
 Map<String,RepositoryEntry> getRepositories(HttpServletRequest request)
          Returns the list of JCR repositories available on this server
 
Methods inherited from class org.modeshape.web.jcr.rest.AbstractJcrResource
getSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerResource

public ServerResource()
Method Detail

getRepositories

public Map<String,RepositoryEntry> getRepositories(@Context
                                                   HttpServletRequest request)
Returns the list of JCR repositories available on this server

Parameters:
request - the servlet request; may not be null
Returns:
the list of JCR repositories available on this server


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.