org.apache.maven.model.path
Class DefaultModelUrlNormalizer

java.lang.Object
  extended by org.apache.maven.model.path.DefaultModelUrlNormalizer
All Implemented Interfaces:
ModelUrlNormalizer

@Component(role=ModelUrlNormalizer.class)
public class DefaultModelUrlNormalizer
extends Object
implements ModelUrlNormalizer

Normalizes URLs to remove the ugly parent references "../" that got potentially inserted by URL adjustment during model inheritance.

Author:
Benjamin Bentmann

Constructor Summary
DefaultModelUrlNormalizer()
           
 
Method Summary
 void normalize(Model model, ModelBuildingRequest request)
          Normalizes the well-known URLs of the specified model.
 DefaultModelUrlNormalizer setUrlNormalizer(UrlNormalizer urlNormalizer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultModelUrlNormalizer

public DefaultModelUrlNormalizer()
Method Detail

setUrlNormalizer

public DefaultModelUrlNormalizer setUrlNormalizer(UrlNormalizer urlNormalizer)

normalize

public void normalize(Model model,
                      ModelBuildingRequest request)
Description copied from interface: ModelUrlNormalizer
Normalizes the well-known URLs of the specified model.

Specified by:
normalize in interface ModelUrlNormalizer
Parameters:
model - The model whose URLs should be normalized, may be null.
request - The model building request that holds further settings, must not be null.


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.