Class PathParamInjector

  • All Implemented Interfaces:
    ValueInjector

    public class PathParamInjector
    extends java.lang.Object
    implements ValueInjector
    Version:
    $Revision: 1 $
    • Constructor Summary

      Constructors 
      Constructor Description
      PathParamInjector​(java.lang.Class type, java.lang.reflect.Type genericType, java.lang.reflect.AccessibleObject target, java.lang.String paramName, java.lang.String defaultValue, boolean encode, java.lang.annotation.Annotation[] annotations, ResteasyProviderFactory factory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.util.List<javax.ws.rs.core.PathSegment> flattenToList​(java.util.List<javax.ws.rs.core.PathSegment[]> list)  
      java.lang.Object inject()
      Inject outside the context of an HTTP request.
      java.lang.Object inject​(HttpRequest request, HttpResponse response)
      Inject inside the context of an HTTP request.
      private boolean isPathSegmentArray​(java.lang.Class type)  
      private boolean isPathSegmentList​(java.lang.Class type, java.lang.reflect.Type genericType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • paramName

        private java.lang.String paramName
      • encode

        private boolean encode
      • type

        private java.lang.Class type
      • pathSegment

        private boolean pathSegment
      • pathSegmentArray

        private boolean pathSegmentArray
      • pathSegmentList

        private boolean pathSegmentList
    • Constructor Detail

      • PathParamInjector

        public PathParamInjector​(java.lang.Class type,
                                 java.lang.reflect.Type genericType,
                                 java.lang.reflect.AccessibleObject target,
                                 java.lang.String paramName,
                                 java.lang.String defaultValue,
                                 boolean encode,
                                 java.lang.annotation.Annotation[] annotations,
                                 ResteasyProviderFactory factory)
    • Method Detail

      • isPathSegmentArray

        private boolean isPathSegmentArray​(java.lang.Class type)
      • isPathSegmentList

        private boolean isPathSegmentList​(java.lang.Class type,
                                          java.lang.reflect.Type genericType)
      • inject

        public java.lang.Object inject()
        Description copied from interface: ValueInjector
        Inject outside the context of an HTTP request. For instance, a singleton may have proxiable and injectable jax-rs objects like Request, UriInfo, or HttpHeaders.
        Specified by:
        inject in interface ValueInjector
        Returns:
      • flattenToList

        private java.util.List<javax.ws.rs.core.PathSegment> flattenToList​(java.util.List<javax.ws.rs.core.PathSegment[]> list)