Package org.jboss.resteasy.core
Class PathParamInjector
- java.lang.Object
-
- org.jboss.resteasy.core.PathParamInjector
-
- All Implemented Interfaces:
ValueInjector
public class PathParamInjector extends java.lang.Object implements ValueInjector
- Version:
- $Revision: 1 $
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
encode
private StringParameterInjector
extractor
private java.lang.String
paramName
private boolean
pathSegment
private boolean
pathSegmentArray
private boolean
pathSegmentList
private java.lang.Class
type
-
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)
-
-
-
Field Detail
-
extractor
private StringParameterInjector extractor
-
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(HttpRequest request, HttpResponse response)
Description copied from interface:ValueInjector
Inject inside the context of an HTTP request.- Specified by:
inject
in interfaceValueInjector
- Returns:
-
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 interfaceValueInjector
- Returns:
-
flattenToList
private java.util.List<javax.ws.rs.core.PathSegment> flattenToList(java.util.List<javax.ws.rs.core.PathSegment[]> list)
-
-