Package org.jboss.resteasy.core
Class PathParamInjector
java.lang.Object
org.jboss.resteasy.core.PathParamInjector
- All Implemented Interfaces:
ValueInjector
- Version:
- $Revision: 1 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private StringParameterInjector
private String
private boolean
private boolean
private boolean
private Class
-
Constructor Summary
ConstructorsConstructorDescriptionPathParamInjector
(Class type, Type genericType, AccessibleObject target, String paramName, String defaultValue, boolean encode, Annotation[] annotations, ResteasyProviderFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionprivate List
<javax.ws.rs.core.PathSegment> flattenToList
(List<javax.ws.rs.core.PathSegment[]> list) inject()
Inject outside the context of an HTTP request.inject
(HttpRequest request, HttpResponse response) Inject inside the context of an HTTP request.private boolean
isPathSegmentArray
(Class type) private boolean
isPathSegmentList
(Class type, Type genericType)
-
Field Details
-
extractor
-
paramName
-
encode
private boolean encode -
type
-
pathSegment
private boolean pathSegment -
pathSegmentArray
private boolean pathSegmentArray -
pathSegmentList
private boolean pathSegmentList
-
-
Constructor Details
-
PathParamInjector
public PathParamInjector(Class type, Type genericType, AccessibleObject target, String paramName, String defaultValue, boolean encode, Annotation[] annotations, ResteasyProviderFactory factory)
-
-
Method Details
-
isPathSegmentArray
-
isPathSegmentList
-
inject
Description copied from interface:ValueInjector
Inject inside the context of an HTTP request.- Specified by:
inject
in interfaceValueInjector
- Parameters:
request
-response
-- Returns:
-
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
-