org.glassfish.jersey.internal.inject
Class UriInfoInjectee

java.lang.Object
  extended by org.glassfish.jersey.internal.inject.UriInfoInjectee
All Implemented Interfaces:
javax.ws.rs.core.UriInfo

public class UriInfoInjectee
extends Object
implements javax.ws.rs.core.UriInfo

Proxiable wrapper for request scoped UriInfo instance.

Author:
Jakub Podlesak (jakub.podlesak at oracle.com)

Constructor Summary
UriInfoInjectee()
           
 
Method Summary
 URI getAbsolutePath()
           
 javax.ws.rs.core.UriBuilder getAbsolutePathBuilder()
           
 URI getBaseUri()
           
 javax.ws.rs.core.UriBuilder getBaseUriBuilder()
           
 List<Object> getMatchedResources()
           
 List<String> getMatchedURIs()
           
 List<String> getMatchedURIs(boolean decode)
           
 String getPath()
           
 String getPath(boolean decode)
           
 javax.ws.rs.core.MultivaluedMap<String,String> getPathParameters()
           
 javax.ws.rs.core.MultivaluedMap<String,String> getPathParameters(boolean decode)
           
 List<javax.ws.rs.core.PathSegment> getPathSegments()
           
 List<javax.ws.rs.core.PathSegment> getPathSegments(boolean decode)
           
 javax.ws.rs.core.MultivaluedMap<String,String> getQueryParameters()
           
 javax.ws.rs.core.MultivaluedMap<String,String> getQueryParameters(boolean decode)
           
 URI getRequestUri()
           
 javax.ws.rs.core.UriBuilder getRequestUriBuilder()
           
 URI relativize(URI uri)
           
 URI resolve(URI uri)
           
 void set(javax.ws.rs.core.UriInfo uriInfo)
          Set wrapped instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UriInfoInjectee

public UriInfoInjectee()
Method Detail

set

public void set(javax.ws.rs.core.UriInfo uriInfo)
Set wrapped instance. Should be invoked on each incoming request, when a new injectee instance is created by HK2.

Parameters:
uriInfo - actual uri info.

getRequestUri

public URI getRequestUri()
Specified by:
getRequestUri in interface javax.ws.rs.core.UriInfo

getPath

public String getPath()
Specified by:
getPath in interface javax.ws.rs.core.UriInfo

getPath

public String getPath(boolean decode)
Specified by:
getPath in interface javax.ws.rs.core.UriInfo

getPathSegments

public List<javax.ws.rs.core.PathSegment> getPathSegments()
Specified by:
getPathSegments in interface javax.ws.rs.core.UriInfo

getPathSegments

public List<javax.ws.rs.core.PathSegment> getPathSegments(boolean decode)
Specified by:
getPathSegments in interface javax.ws.rs.core.UriInfo

getRequestUriBuilder

public javax.ws.rs.core.UriBuilder getRequestUriBuilder()
Specified by:
getRequestUriBuilder in interface javax.ws.rs.core.UriInfo

getAbsolutePath

public URI getAbsolutePath()
Specified by:
getAbsolutePath in interface javax.ws.rs.core.UriInfo

getAbsolutePathBuilder

public javax.ws.rs.core.UriBuilder getAbsolutePathBuilder()
Specified by:
getAbsolutePathBuilder in interface javax.ws.rs.core.UriInfo

getBaseUri

public URI getBaseUri()
Specified by:
getBaseUri in interface javax.ws.rs.core.UriInfo

getBaseUriBuilder

public javax.ws.rs.core.UriBuilder getBaseUriBuilder()
Specified by:
getBaseUriBuilder in interface javax.ws.rs.core.UriInfo

getPathParameters

public javax.ws.rs.core.MultivaluedMap<String,String> getPathParameters()
Specified by:
getPathParameters in interface javax.ws.rs.core.UriInfo

getPathParameters

public javax.ws.rs.core.MultivaluedMap<String,String> getPathParameters(boolean decode)
Specified by:
getPathParameters in interface javax.ws.rs.core.UriInfo

getQueryParameters

public javax.ws.rs.core.MultivaluedMap<String,String> getQueryParameters()
Specified by:
getQueryParameters in interface javax.ws.rs.core.UriInfo

getQueryParameters

public javax.ws.rs.core.MultivaluedMap<String,String> getQueryParameters(boolean decode)
Specified by:
getQueryParameters in interface javax.ws.rs.core.UriInfo

getMatchedURIs

public List<String> getMatchedURIs()
Specified by:
getMatchedURIs in interface javax.ws.rs.core.UriInfo

getMatchedURIs

public List<String> getMatchedURIs(boolean decode)
Specified by:
getMatchedURIs in interface javax.ws.rs.core.UriInfo

getMatchedResources

public List<Object> getMatchedResources()
Specified by:
getMatchedResources in interface javax.ws.rs.core.UriInfo

resolve

public URI resolve(URI uri)
Specified by:
resolve in interface javax.ws.rs.core.UriInfo

relativize

public URI relativize(URI uri)
Specified by:
relativize in interface javax.ws.rs.core.UriInfo


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.