deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.portal.context
Class WebMapContextFactory

java.lang.Object
  extended by org.deegree.portal.context.WebMapContextFactory

public class WebMapContextFactory
extends java.lang.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: 23790 $, $Date: 2010-04-23 14:22:04 +0200 (Fr, 23 Apr 2010) $
Author:
Andreas Poth, last edited by: $Author: jmays $

Constructor Summary
WebMapContextFactory()
           
 
Method Summary
static ViewContext createViewContext(java.net.URL url, User user, java.lang.String sessionID)
          creates an instance of a ViewContext from the web map context document read from the passed URL
static ViewContext createViewContext(XMLFragment xml, User user, java.lang.String sessionID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebMapContextFactory

public WebMapContextFactory()
Method Detail

createViewContext

public static ViewContext createViewContext(java.net.URL url,
                                            User user,
                                            java.lang.String sessionID)
                                     throws java.io.IOException,
                                            XMLParsingException,
                                            ContextException,
                                            org.xml.sax.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:
java.io.IOException
XMLParsingException
ContextException
org.xml.sax.SAXException
UnknownCRSException

createViewContext

public static ViewContext createViewContext(XMLFragment xml,
                                            User user,
                                            java.lang.String sessionID)
                                     throws java.io.IOException,
                                            XMLParsingException,
                                            ContextException,
                                            UnknownCRSException
Parameters:
xml -
user -
sessionID -
Returns:
new ViewContext for web map context document from xml
Throws:
java.io.IOException
XMLParsingException
ContextException
UnknownCRSException

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org