use of org.apache.jackrabbit.servlet.ServletRepository in project jackrabbit by apache.
the class RemoteBindingServlet method getRemoteRepository.
/**
* Returns the configured remote repository reference. The remote
* repository is instantiated and memorized during the first call to
* this method.
*
* @return remote repository
* @throws ServletException if the repository could not be instantiated
*/
protected RemoteRepository getRemoteRepository() throws ServletException {
if (remote == null) {
try {
RemoteAdapterFactory factory = getRemoteAdapterFactory();
remote = factory.getRemoteRepository(new ServletRepository(this));
} catch (RemoteException e) {
throw new ServletException("Failed to create the remote repository reference", e);
}
}
return remote;
}
use of org.apache.jackrabbit.servlet.ServletRepository in project jackrabbit by apache.
the class AbstractLoginFilter method init.
public void init(FilterConfig config) {
repository = new ServletRepository(config);
workspace = config.getInitParameter("workspace");
sessionAttribute = config.getInitParameter(Session.class.getName());
if (sessionAttribute == null) {
sessionAttribute = Session.class.getName();
}
nodeAttribute = config.getInitParameter(Node.class.getName());
if (nodeAttribute == null) {
nodeAttribute = Node.class.getName();
}
}
Aggregations