Apache CXF API

org.apache.cxf.jaxrs.provider
Class PrefixRespectingMappedNamespaceConvention

java.lang.Object
  extended by org.codehaus.jettison.mapped.MappedNamespaceConvention
      extended by org.apache.cxf.jaxrs.provider.PrefixRespectingMappedNamespaceConvention
All Implemented Interfaces:
javax.xml.namespace.NamespaceContext, org.codehaus.jettison.Convention

public class PrefixRespectingMappedNamespaceConvention
extends org.codehaus.jettison.mapped.MappedNamespaceConvention

The MappedNamespaceConvention throws for any namespace that does not have a pre-configured JSON prefix, even when the caller is supplying a perfectly usable prefix via XML. This class overrides that behavior.


Constructor Summary
PrefixRespectingMappedNamespaceConvention(org.codehaus.jettison.mapped.Configuration c)
           
 
Method Summary
 java.lang.String createKey(java.lang.String prefix, java.lang.String ns, java.lang.String local)
           
 
Methods inherited from class org.codehaus.jettison.mapped.MappedNamespaceConvention
convertToJSONPrimitive, createAttributeKey, createQName, getNamespaceURI, getPrefix, getPrefixes, isElement, processAttributesAndNamespaces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefixRespectingMappedNamespaceConvention

public PrefixRespectingMappedNamespaceConvention(org.codehaus.jettison.mapped.Configuration c)
Method Detail

createKey

public java.lang.String createKey(java.lang.String prefix,
                                  java.lang.String ns,
                                  java.lang.String local)
Overrides:
createKey in class org.codehaus.jettison.mapped.MappedNamespaceConvention

Apache CXF API

Apache CXF