org.deegree.portal.standard.security.control
Class InitServiceEditorListener
java.lang.Object
org.deegree.enterprise.control.AbstractListener
org.deegree.portal.standard.security.control.InitServiceEditorListener
- All Implemented Interfaces:
- java.util.EventListener, WebListener
public class InitServiceEditorListener
- extends AbstractListener
This Listener
reacts on 'initServiceAdministration'-events, queries the WCAS and
passes the service data on to be displayed by the JSP.
NOTE: The submitted catalog name in the event is currently ignored, the catalog to be queried is
taken from the harvester configuration.
- Version:
- $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
- Author:
- Markus Schneider , last edited by: $Author: mschneider $
Field Summary |
protected static java.net.URL |
catalogURL
|
Method Summary |
void |
actionPerformed(FormEvent event)
|
protected java.util.Set<java.lang.String[]> |
getBriefDescriptions(java.net.URL catalogURL)
Retrieves "brief descriptions" of all available services from the WCAS. |
protected java.lang.String[] |
getFullDescription(java.net.URL catalogURL,
java.lang.String serviceId)
Retrieves the full description for the specified service from the WCAS. |
(package private) static void |
setHarvesterConfig(java.lang.String configURL)
Called by init-method of SecurityRequestDispatcher once. |
Methods inherited from class org.deegree.enterprise.control.AbstractListener |
getAlternativeNextPage, getHomePath, getInitParameter, getInitParameterList, getNextPage, getRequest, getReturnValue, gotoErrorPage, handle, setAlternativeNextPage, setDefaultAlternativeNextPage, setDefaultNextPage, setNextPage, setReturnValue, toModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
catalogURL
protected static java.net.URL catalogURL
InitServiceEditorListener
public InitServiceEditorListener()
setHarvesterConfig
static void setHarvesterConfig(java.lang.String configURL)
throws java.io.IOException,
org.xml.sax.SAXException,
XMLParsingException
- Called by init-method of
SecurityRequestDispatcher
once.
- Parameters:
configURL
-
- Throws:
java.io.IOException
org.xml.sax.SAXException
XMLParsingException
actionPerformed
public void actionPerformed(FormEvent event)
- Specified by:
actionPerformed
in interface WebListener
- Specified by:
actionPerformed
in class AbstractListener
getBriefDescriptions
protected java.util.Set<java.lang.String[]> getBriefDescriptions(java.net.URL catalogURL)
throws java.io.IOException,
org.xml.sax.SAXException,
XMLParsingException
- Retrieves "brief descriptions" of all available services from the WCAS.
- Parameters:
catalogURL
-
- Returns:
- elements are arrays of Strings (title, id, type)
- Throws:
java.io.IOException
org.xml.sax.SAXException
XMLParsingException
getFullDescription
protected java.lang.String[] getFullDescription(java.net.URL catalogURL,
java.lang.String serviceId)
throws java.lang.Exception
- Retrieves the full description for the specified service from the WCAS.
- Parameters:
catalogURL
- serviceId
-
- Returns:
- String array (14 values) describing the service
- Throws:
java.lang.Exception
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org