|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.service.utils.webadmin.AbstractWebConfigBase
public abstract class AbstractWebConfigBase
This class provides a web interface for configuring a set of services. It handles testing for missing jars, setting up a keystore and TLS, and configuring hibernate. Once the base is configured correctly, it will display aggregated feeds from other services. When creating a .WAR distribution, this class should be subclassed to list the individual services required.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
|
protected Writer |
out
|
protected String |
parentWebAppContext
|
protected HttpServletRequest |
request
|
protected File |
webappClasses
|
protected File |
webinf
|
| Constructor Summary | |
|---|---|
AbstractWebConfigBase(HttpServletRequest request,
Writer out)
Constructor. |
|
| Method Summary | |
|---|---|
void |
checkConfig()
Ensure that the services are configured correctly. |
void |
ensurePoliciesDeployed()
Ensure that any required PBAC policies are deployed. |
Document |
getAtomFeed()
Get an Atom feed for this webapp. |
Document |
getAtomFeed(String atomFeed,
String serviceBase)
Get at Atom feed for this container. |
protected File |
getDefaultConfigDir()
The default directory to suggest for configuration. |
protected String |
getUpgradeMessage(String serviceName,
String progress)
|
protected String |
getVersionProperty()
The old name of the property in warversion.properties used for the version number. |
protected abstract void |
mergeServiceAtomFeeds(Document feed,
String atomFeed,
String base)
Let each service add any events it wants to the master Atom feed. |
protected abstract void |
serviceSpecificSetup()
Called while displaying the admin page if the base configuration is OK. |
protected int |
showFeed(WebAdmin service,
String feedURL,
String serviceBase)
Show the first few items of feed in a compact format. |
abstract boolean |
showPublicServices()
List all the services, with links to their WSDL. |
protected abstract void |
showServices(boolean available)
Write out HTML listing all the services. |
protected void |
testInvocation(String service,
String operation)
Try invoking a simple SOAP operation. |
protected UpgradeReport |
upgradeService(String serviceName,
String upgraderFactoryClass,
String oldVersion)
|
protected abstract void |
upgradeServices(String oldVersion)
Called when upgrading from an older version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Writer out
protected HttpServletRequest request
protected File webappClasses
protected String parentWebAppContext
protected static org.apache.log4j.Logger log
protected File webinf
| Constructor Detail |
|---|
public AbstractWebConfigBase(HttpServletRequest request,
Writer out)
request - the request object from the JSP contextout - the response's output writer| Method Detail |
|---|
protected String getVersionProperty()
protected File getDefaultConfigDir()
public void checkConfig()
throws Exception
Exception
protected abstract void upgradeServices(String oldVersion)
throws Stop
Stop
protected abstract void serviceSpecificSetup()
throws Exception
Exception
protected String getUpgradeMessage(String serviceName,
String progress)
protected void testInvocation(String service,
String operation)
throws Exception
service - name of service, e.g. "MyService"operation - the operation to invoke
Stop - with useful diagnostic information and hints on failure
Exception
protected UpgradeReport upgradeService(String serviceName,
String upgraderFactoryClass,
String oldVersion)
throws Stop
Stop
protected int showFeed(WebAdmin service,
String feedURL,
String serviceBase)
throws IOException
IOException
protected abstract void showServices(boolean available)
throws IOException
available - whether the links should be clickable (i.e. whether the base configuration has been compeleted yet)
IOException
public abstract boolean showPublicServices()
throws IOException
IOException
public Document getAtomFeed()
throws Exception
Exception
protected abstract void mergeServiceAtomFeeds(Document feed,
String atomFeed,
String base)
throws Exception
feed - the feed so faratomFeed - the URL of the atom feed being generatedbase - the base URL for this web-app
Exception
public Document getAtomFeed(String atomFeed,
String serviceBase)
throws GridFailureException
getAtomFeed in interface WebAdminatomFeed - the URL of the feedserviceBase - the service administration URL (for creating hyperlinks)
GridFailureExceptionAtomUtilspublic void ensurePoliciesDeployed()
WebAdmin
ensurePoliciesDeployed in interface WebAdmin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||