Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/server/features/FeaturesNamespaceContext.java @ 3548:fed914a42a10
Merged revisions 5373,5377-5378 via svnmerge from
file:///home/clients/bsh/bsh-generischer-viewer/Material/SVN/flys-client/trunk
........
r5373 | ingo | 2012-09-07 11:21:25 +0200 (Fr, 07 Sep 2012) | 1 line
Tagged 'flys-client' as 2.9
........
r5377 | bricks | 2012-09-07 13:37:00 +0200 (Fr, 07 Sep 2012) | 2 lines
Move RemoteServiceServlet to server package
........
r5378 | bricks | 2012-09-07 13:58:11 +0200 (Fr, 07 Sep 2012) | 4 lines
Refactor UserServiceImpl getCurrentUser method
Return the logged in user in getCurrentUser method.
........
flys-client/tags/2.9@5381 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 07 Sep 2012 12:03:15 +0000 |
parents | 4a6321dd5186 |
children |
line wrap: on
line source
package de.intevation.flys.client.server.features; import java.util.Iterator; import javax.xml.XMLConstants; import javax.xml.namespace.NamespaceContext; public class FeaturesNamespaceContext implements NamespaceContext { /** * The URI of the namespace of the features. */ public final static String NAMESPACE_URI = "http://www.intevation.de/2012/flys/features"; /** * The XML prefix for the features namespace. */ public final static String NAMESPACE_PREFIX = "ftr"; /** * Final instance to be easily used to avoid creation * of instances. */ public static final FeaturesNamespaceContext INSTANCE = new FeaturesNamespaceContext(); /** * The default constructor. */ public FeaturesNamespaceContext() { } /** * @see javax.xml.namespace.NamespaceContext#getNamespaceURI(String) * @param prefix The prefix * @return The corresponing URI */ @Override public String getNamespaceURI(String prefix) { if (prefix == null) { throw new NullPointerException("Null prefix"); } if (NAMESPACE_PREFIX.equals(prefix)) { return NAMESPACE_URI; } if ("xml".equals(prefix)) { return XMLConstants.XML_NS_URI; } return XMLConstants.NULL_NS_URI; } /** * @see javax.xml.namespace.NamespaceContext#getPrefix(String) * @param uri The URI * @return nothing. * @throws java.lang.UnsupportedOperationException */ @Override public String getPrefix(String uri) { throw new UnsupportedOperationException(); } /** * @see javax.xml.namespace.NamespaceContext#getPrefixes(java.lang.String) * @param uri The URI * @return nothing * @throws java.lang.UnsupportedOperationException */ @Override public Iterator getPrefixes(String uri) { throw new UnsupportedOperationException(); } }