org.glassfish.jersey.internal.inject
Class UriInfoInjectee

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

public class UriInfoInjectee
extends Object
implements UriInfo

Proxiable wrapper for request scoped UriInfo instance.

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

Constructor Summary
UriInfoInjectee()
           
 
Method Summary
 URI getAbsolutePath()
           
 UriBuilder getAbsolutePathBuilder()
           
 URI getBaseUri()
           
 UriBuilder getBaseUriBuilder()
           
 List<Object> getMatchedResources()
           
 List<String> getMatchedURIs()
           
 List<String> getMatchedURIs(boolean decode)
           
 String getPath()
           
 String getPath(boolean decode)
           
 MultivaluedMap<String,String> getPathParameters()
           
 MultivaluedMap<String,String> getPathParameters(boolean decode)
           
 List<PathSegment> getPathSegments()
           
 List<PathSegment> getPathSegments(boolean decode)
           
 MultivaluedMap<String,String> getQueryParameters()
           
 MultivaluedMap<String,String> getQueryParameters(boolean decode)
           
 URI getRequestUri()
           
 UriBuilder getRequestUriBuilder()
           
 URI relativize(URI uri)
           
 URI relativize(URI from, URI uri)
           
 URI resolve(URI uri)
           
 URI resolve(URI baseUri, URI uri)
           
 void set(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(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 UriInfo

getPath

public String getPath()
Specified by:
getPath in interface UriInfo

getPath

public String getPath(boolean decode)
Specified by:
getPath in interface UriInfo

getPathSegments

public List<PathSegment> getPathSegments()
Specified by:
getPathSegments in interface UriInfo

getPathSegments

public List<PathSegment> getPathSegments(boolean decode)
Specified by:
getPathSegments in interface UriInfo

getRequestUriBuilder

public UriBuilder getRequestUriBuilder()
Specified by:
getRequestUriBuilder in interface UriInfo

getAbsolutePath

public URI getAbsolutePath()
Specified by:
getAbsolutePath in interface UriInfo

getAbsolutePathBuilder

public UriBuilder getAbsolutePathBuilder()
Specified by:
getAbsolutePathBuilder in interface UriInfo

getBaseUri

public URI getBaseUri()
Specified by:
getBaseUri in interface UriInfo

getBaseUriBuilder

public UriBuilder getBaseUriBuilder()
Specified by:
getBaseUriBuilder in interface UriInfo

getPathParameters

public MultivaluedMap<String,String> getPathParameters()
Specified by:
getPathParameters in interface UriInfo

getPathParameters

public MultivaluedMap<String,String> getPathParameters(boolean decode)
Specified by:
getPathParameters in interface UriInfo

getQueryParameters

public MultivaluedMap<String,String> getQueryParameters()
Specified by:
getQueryParameters in interface UriInfo

getQueryParameters

public MultivaluedMap<String,String> getQueryParameters(boolean decode)
Specified by:
getQueryParameters in interface UriInfo

getMatchedURIs

public List<String> getMatchedURIs()
Specified by:
getMatchedURIs in interface UriInfo

getMatchedURIs

public List<String> getMatchedURIs(boolean decode)
Specified by:
getMatchedURIs in interface UriInfo

getMatchedResources

public List<Object> getMatchedResources()
Specified by:
getMatchedResources in interface UriInfo

resolve

public URI resolve(URI uri)
Specified by:
resolve in interface UriInfo

resolve

public URI resolve(URI baseUri,
                   URI uri)
Specified by:
resolve in interface UriInfo

relativize

public URI relativize(URI uri)
Specified by:
relativize in interface UriInfo

relativize

public URI relativize(URI from,
                      URI uri)
Specified by:
relativize in interface UriInfo


Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.