org.deegree.portal.context
Class WebMapContextFactory
java.lang.Object
org.deegree.portal.context.WebMapContextFactory
public class WebMapContextFactory
- extends Object
Factory class for creating an instance of a web map Context (ViewContext). The factory is able to parse
deegree specific extensions (General and Layer) as well as standard web map context documents.
- Version:
- $Revision: 31070 $, $Date: 2011-06-16 14:57:48 +0200 (Do, 16 Jun 2011) $
- Author:
- Andreas Poth, last edited by: $Author: apoth $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebMapContextFactory
public WebMapContextFactory()
createViewContext
public static ViewContext createViewContext(URL url,
User user,
String sessionID)
throws IOException,
XMLParsingException,
ContextException,
SAXException,
UnknownCRSException
- creates an instance of a ViewContext from the web map context document read from the passed URL
- Parameters:
url
- user
- sessionID
-
- Returns:
- new ViewContext for web map context document from
url
- Throws:
IOException
XMLParsingException
ContextException
SAXException
UnknownCRSException
createViewContext
public static ViewContext createViewContext(XMLFragment xml,
User user,
String sessionID)
throws IOException,
XMLParsingException,
ContextException,
UnknownCRSException,
SAXException
- Parameters:
xml
- user
- sessionID
-
- Returns:
- new ViewContext for web map context document from
xml
- Throws:
IOException
XMLParsingException
ContextException
UnknownCRSException
SAXException
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org