public class CDOServerBrowser extends Worker
Actual content is contributed through pluggable pages
.
Note: Don't use this server in production, it's unsecure and does not perform or scale!
Modifier and Type | Class and Description |
---|---|
static class |
CDOServerBrowser.AbstractPage
An abstract base implementation of a
server browser page . |
static class |
CDOServerBrowser.ContainerBased
A
server browser for the repositories in a managed container . |
static class |
CDOServerBrowser.HistoryPage
A
server browser page that renders commit infos . |
static class |
CDOServerBrowser.LobsPage
A
server browser page that renders large object infos . |
static class |
CDOServerBrowser.LocksPage
A
server browser page that renders the locking manager contents of a repository. |
static class |
CDOServerBrowser.PackagesPage
A
server browser page that renders the package registry contents of a repository. |
static interface |
CDOServerBrowser.Page
Represents pluggable content for a
server browser . |
static class |
CDOServerBrowser.RevisionsPage
A
server browser page that renders revisions . |
Worker.WorkContext
ILifecycle.DeferrableActivation
DEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT
Constructor and Description |
---|
CDOServerBrowser(Map<String,InternalRepository> repositories) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearParams() |
protected void |
doActivate() |
protected void |
doDeactivate() |
String |
escape(String raw) |
protected IManagedContainer |
getPagesContainer() |
String |
getParam(String key) |
int |
getPort() |
Map<String,InternalRepository> |
getRepositories() |
protected InternalRepository |
getRepository(String name) |
protected Set<String> |
getRepositoryNames() |
protected String |
getThreadName() |
String |
href(String label,
String resource,
String... params) |
protected void |
initPages(List<CDOServerBrowser.Page> pages) |
protected void |
initParams(String params) |
protected void |
printHeader(PrintStream pout) |
void |
removeParam(String key) |
void |
setPort(int port) |
protected void |
showMenu(PrintStream pout) |
protected void |
showPage(PrintStream pout,
CDOServerBrowser.Page page) |
protected void |
work(Worker.WorkContext context) |
getActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandler
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
addListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, getListeners, hasListeners, removeListener
public CDOServerBrowser(Map<String,InternalRepository> repositories)
public Map<String,InternalRepository> getRepositories()
public int getPort()
public void setPort(int port)
protected void work(Worker.WorkContext context) throws Exception
protected void initParams(String params)
protected void clearParams()
public void removeParam(String key)
protected void printHeader(PrintStream pout)
protected void showMenu(PrintStream pout)
protected void showPage(PrintStream pout, CDOServerBrowser.Page page)
protected InternalRepository getRepository(String name)
protected String getThreadName()
getThreadName
in class Worker
protected void initPages(List<CDOServerBrowser.Page> pages)
protected IManagedContainer getPagesContainer()
protected void doActivate() throws Exception
doActivate
in class Worker
Exception
protected void doDeactivate() throws Exception
doDeactivate
in class Worker
Exception
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.