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 booleanencodeprivate StringParameterInjectorextractorprivate java.lang.StringparamNameprivate booleanpathSegmentprivate booleanpathSegmentArrayprivate booleanpathSegmentListprivate java.lang.Classtype
-
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.Objectinject()Inject outside the context of an HTTP request.java.lang.Objectinject(HttpRequest request, HttpResponse response)Inject inside the context of an HTTP request.private booleanisPathSegmentArray(java.lang.Class type)private booleanisPathSegmentList(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:ValueInjectorInject inside the context of an HTTP request.- Specified by:
injectin interfaceValueInjector- Returns:
-
inject
public java.lang.Object inject()
Description copied from interface:ValueInjectorInject 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:
injectin interfaceValueInjector- Returns:
-
flattenToList
private java.util.List<javax.ws.rs.core.PathSegment> flattenToList(java.util.List<javax.ws.rs.core.PathSegment[]> list)
-
-