org.ops4j.pax.web.extender.whiteboard.runtime
Class DefaultResourceMapping

java.lang.Object
  extended by org.ops4j.pax.web.extender.whiteboard.runtime.DefaultResourceMapping
All Implemented Interfaces:
ResourceMapping

public class DefaultResourceMapping
extends java.lang.Object
implements ResourceMapping

Default implementation of ResourceMapping.

Since:
0.4.0, April 05, 2008
Author:
Alin Dreghiciu

Constructor Summary
DefaultResourceMapping()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAlias()
          Getter.
 java.lang.String getHttpContextId()
          Getter.
 java.lang.String getPath()
          Getter.
 int hashCode()
           
 void setAlias(java.lang.String alias)
          Setter.
 void setHttpContextId(java.lang.String httpContextId)
          Setter.
 void setPath(java.lang.String path)
          Setter.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultResourceMapping

public DefaultResourceMapping()
Method Detail

getHttpContextId

public java.lang.String getHttpContextId()
Description copied from interface: ResourceMapping
Getter.

Specified by:
getHttpContextId in interface ResourceMapping
Returns:
id of the http context this resource belongs to
See Also:
ResourceMapping.getHttpContextId()

getAlias

public java.lang.String getAlias()
Description copied from interface: ResourceMapping
Getter.

Specified by:
getAlias in interface ResourceMapping
Returns:
resource alias
See Also:
ResourceMapping.getAlias()

getPath

public java.lang.String getPath()
Description copied from interface: ResourceMapping
Getter.

Specified by:
getPath in interface ResourceMapping
Returns:
local path in the bundle
See Also:
ResourceMapping.getPath()

setHttpContextId

public void setHttpContextId(java.lang.String httpContextId)
Setter.

Parameters:
httpContextId - id of the http context this resource belongs to

setAlias

public void setAlias(java.lang.String alias)
Setter.

Parameters:
alias - alias this resource maps to

setPath

public void setPath(java.lang.String path)
Setter.

Parameters:
path - local path in the bundle

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.