info.magnolia.cms.beans.config
Class VirtualURIManager

java.lang.Object
  extended by info.magnolia.cms.beans.config.ObservedManager
      extended by info.magnolia.cms.beans.config.VirtualURIManager

@Singleton
public final class VirtualURIManager
extends ObservedManager

Store for all virtual URI to template/page mapping.

Version:
2.0
Author:
Sameer Charles

Field Summary
static String FROM_URI_NODEDATANAME
           
static String TO_URI_NODEDATANAME
           
 
Fields inherited from class info.magnolia.cms.beans.config.ObservedManager
registeredUUIDs
 
Constructor Summary
VirtualURIManager()
          Instantiated by the system.
 
Method Summary
static VirtualURIManager getInstance()
          Deprecated. since 4.5, use IoC !
 String getURIMapping(String uri)
          checks for the requested URI mapping in Server config : Servlet Specification 2.3 Section 10 "Mapping Requests to Servlets".
 String getURIMapping(String uri, String queryString)
          checks for the requested URI mapping in Server config : Servlet Specification 2.3 Section 10 "Mapping Requests to Servlets".
 Collection<VirtualURIMapping> getURIMappings()
           
protected  void onClear()
          The implementor should clear everthing.
protected  void onRegister(Content node)
          Registers a node.
 
Methods inherited from class info.magnolia.cms.beans.config.ObservedManager
clear, register, reload, reload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FROM_URI_NODEDATANAME

public static final String FROM_URI_NODEDATANAME
See Also:
Constant Field Values

TO_URI_NODEDATANAME

public static final String TO_URI_NODEDATANAME
See Also:
Constant Field Values
Constructor Detail

VirtualURIManager

public VirtualURIManager()
Instantiated by the system.

Method Detail

getURIMapping

public String getURIMapping(String uri)
checks for the requested URI mapping in Server config : Servlet Specification 2.3 Section 10 "Mapping Requests to Servlets".

Parameters:
uri - the URI of the current request, decoded and without the context path
Returns:
URI string mapping

getURIMapping

public String getURIMapping(String uri,
                            String queryString)
checks for the requested URI mapping in Server config : Servlet Specification 2.3 Section 10 "Mapping Requests to Servlets".

Parameters:
uri - the URI of the current request, decoded and without the context path
queryString - the Query String of the current request
Returns:
URI string mapping

onRegister

protected void onRegister(Content node)
Description copied from class: ObservedManager
Registers a node.

Specified by:
onRegister in class ObservedManager

onClear

protected void onClear()
Description copied from class: ObservedManager
The implementor should clear everthing. If needed the nodes will get registered.

Specified by:
onClear in class ObservedManager

getURIMappings

public Collection<VirtualURIMapping> getURIMappings()

getInstance

public static VirtualURIManager getInstance()
Deprecated. since 4.5, use IoC !

Returns:
Returns the instance.


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.