org.ow2.jonas.jaxrs.jersey.internal
Class PathUtils

java.lang.Object
  extended by org.ow2.jonas.jaxrs.jersey.internal.PathUtils

public class PathUtils
extends Object

A PathUtils is responsible to compute web context path information.

Author:
Guillaume Sauthier

Constructor Summary
PathUtils()
           
 
Method Summary
static String getContextPath(javax.ws.rs.core.Application application, org.osgi.framework.ServiceReference reference)
          Build the context path of the given Application
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathUtils

public PathUtils()
Method Detail

getContextPath

public static String getContextPath(javax.ws.rs.core.Application application,
                                    org.osgi.framework.ServiceReference reference)
Build the context path of the given Application

Parameters:
application - REST application
reference - OSGi ServiceReference associated to the Application
Returns:
a valid context path


Copyright © 2013 OW2 Consortium. All Rights Reserved.