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

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

public class FilterWebElement
extends java.lang.Object
implements WebElement

Registers/unregisters FilterMapping with WebContainer.

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

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

Constructor Detail

FilterWebElement

public FilterWebElement(FilterMapping filterMapping)
Constructor.

Parameters:
filterMapping - filter 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 filter from http service.

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

unregister

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

Specified by:
unregister in interface WebElement

getHttpContextId

public java.lang.String getHttpContextId()
Specified by:
getHttpContextId 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.