org.ops4j.pax.web.extender.whiteboard.internal.element
Class ResourceWebElement

java.lang.Object
  extended by org.ops4j.pax.web.extender.whiteboard.internal.element.ResourceWebElement
All Implemented Interfaces:
WebElement

public class ResourceWebElement
extends java.lang.Object
implements WebElement

Registers/unregisters ResourceMapping with HttpService.

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

Constructor Summary
ResourceWebElement(ResourceMapping resourceMapping)
          Constructor.
 
Method Summary
 java.lang.String getHttpContextId()
           
 void register(org.osgi.service.http.HttpService httpService, org.osgi.service.http.HttpContext httpContext)
          Registers resource with http service.
 java.lang.String toString()
           
 void unregister(org.osgi.service.http.HttpService httpService, org.osgi.service.http.HttpContext httpContext)
          Unregisters resource from http service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceWebElement

public ResourceWebElement(ResourceMapping resourceMapping)
Constructor.

Parameters:
resourceMapping - resource mapping; cannot be null
Method Detail

register

public void register(org.osgi.service.http.HttpService httpService,
                     org.osgi.service.http.HttpContext httpContext)
              throws java.lang.Exception
Registers resource with http service.

Specified by:
register in interface WebElement
Throws:
java.lang.Exception

getHttpContextId

public java.lang.String getHttpContextId()
Specified by:
getHttpContextId in interface WebElement

unregister

public void unregister(org.osgi.service.http.HttpService httpService,
                       org.osgi.service.http.HttpContext httpContext)
Unregisters resource from http service.

Specified by:
unregister in interface WebElement

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.