public class PathParamInjector extends java.lang.Object implements ValueInjector
Modifier and Type | Field and 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 and 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) |
Modifier and Type | Method and 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) |
private StringParameterInjector extractor
private java.lang.String paramName
private boolean encode
private java.lang.Class type
private boolean pathSegment
private boolean pathSegmentArray
private boolean pathSegmentList
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)
private boolean isPathSegmentArray(java.lang.Class type)
private boolean isPathSegmentList(java.lang.Class type, java.lang.reflect.Type genericType)
public java.lang.Object inject(HttpRequest request, HttpResponse response)
ValueInjector
inject
in interface ValueInjector
public java.lang.Object inject()
ValueInjector
inject
in interface ValueInjector
private java.util.List<javax.ws.rs.core.PathSegment> flattenToList(java.util.List<javax.ws.rs.core.PathSegment[]> list)