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

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

public class DefaultHttpContextMapping
extends java.lang.Object
implements HttpContextMapping

Default implementation of HttpContextMapping.

Since:
0.4.0, March 16, 2008
Author:
Alin Dreghiciu

Constructor Summary
DefaultHttpContextMapping()
           
 
Method Summary
 org.osgi.service.http.HttpContext getHttpContext()
          Getter.
 java.lang.String getHttpContextId()
          Getter.
 java.util.Map<java.lang.String,java.lang.String> getParameters()
          Getter.
 java.lang.String getPath()
          Getter.
 void setHttpContext(org.osgi.service.http.HttpContext httpContext)
          Setter.
 void setHttpContextId(java.lang.String httpContextId)
          Setter.
 void setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
          Setter.
 void setPath(java.lang.String path)
          Setter.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultHttpContextMapping

public DefaultHttpContextMapping()
Method Detail

getHttpContextId

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

Specified by:
getHttpContextId in interface HttpContextMapping
Returns:
context identifier; cannot be null
See Also:
HttpContextMapping.getHttpContextId()

getPath

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

Specified by:
getPath in interface HttpContextMapping
Returns:
context path as in servlet context path; can be null
See Also:
HttpContextMapping.getPath()

getParameters

public java.util.Map<java.lang.String,java.lang.String> getParameters()
Description copied from interface: HttpContextMapping
Getter.

Specified by:
getParameters in interface HttpContextMapping
Returns:
context parameters; can be null
See Also:
HttpContextMapping.getParameters()

getHttpContext

public org.osgi.service.http.HttpContext getHttpContext()
Description copied from interface: HttpContextMapping
Getter.

Specified by:
getHttpContext in interface HttpContextMapping
Returns:
associated HttpContext; can be null, case when a default http context will be created and used
See Also:
HttpContextMapping.getHttpContext()

setHttpContextId

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

Parameters:
httpContextId - context id; can be null

setPath

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

Parameters:
path - context path; can be null

setParameters

public void setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Setter.

Parameters:
parameters - context parameters; can be null

setHttpContext

public void setHttpContext(org.osgi.service.http.HttpContext httpContext)
Setter.

Parameters:
httpContext - http context; can be null case when a default http context will be used

toString

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


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