@Override public PathSegment apply(ContainerRequest request) { List<PathSegment> ps = request.getUriInfo().getPathSegments(name, decode); if (ps.isEmpty()) { return null; } return ps.get(ps.size() - 1); } }
@Override public List<PathSegment> apply(ContainerRequest request) { return request.getUriInfo().getPathSegments(name, decode); } }
@Override public PathSegment apply(ContainerRequest request) { List<PathSegment> ps = request.getUriInfo().getPathSegments(name, decode); if (ps.isEmpty()) { return null; } return ps.get(ps.size() - 1); } }
@Override public List<PathSegment> apply(ContainerRequest request) { return request.getUriInfo().getPathSegments(name, decode); } }
@Override public Object apply(ContainerRequest containerRequest) { List<PathSegment> l = containerRequest.getUriInfo().getPathSegments(decode); PathSegment p = l.get(l.size() - 1); try { return extractor.extract(p.getMatrixParameters()); } catch (ExtractorException e) { throw new ParamException.MatrixParamException(e.getCause(), extractor.getName(), extractor.getDefaultValueString()); } } }
@Override public Object apply(ContainerRequest containerRequest) { List<PathSegment> l = containerRequest.getUriInfo().getPathSegments(decode); PathSegment p = l.get(l.size() - 1); try { return extractor.extract(p.getMatrixParameters()); } catch (ExtractorException e) { throw new ParamException.MatrixParamException(e.getCause(), extractor.getName(), extractor.getDefaultValueString()); } } }
@Override public PathSegment apply(ContainerRequest request) { List<PathSegment> ps = request.getUriInfo().getPathSegments(name, decode); if (ps.isEmpty()) { return null; } return ps.get(ps.size() - 1); } }
@Override public List<PathSegment> apply(ContainerRequest request) { return request.getUriInfo().getPathSegments(name, decode); } }
@Override public Object apply(ContainerRequest containerRequest) { List<PathSegment> l = containerRequest.getUriInfo().getPathSegments(decode); PathSegment p = l.get(l.size() - 1); try { return extractor.extract(p.getMatrixParameters()); } catch (ExtractorException e) { throw new ParamException.MatrixParamException(e.getCause(), extractor.getName(), extractor.getDefaultValueString()); } } }
@Override public List<PathSegment> apply(ContainerRequest request) { return request.getUriInfo().getPathSegments(name, decode); } }
@Override public PathSegment apply(ContainerRequest request) { List<PathSegment> ps = request.getUriInfo().getPathSegments(name, decode); if (ps.isEmpty()) { return null; } return ps.get(ps.size() - 1); } }
@Override public PathSegment provide() { List<PathSegment> ps = getContainerRequest().getUriInfo().getPathSegments(name, decode); if (ps.isEmpty()) { return null; } return ps.get(ps.size() - 1); } }
@Override public PathSegment provide() { List<PathSegment> ps = getContainerRequest().getUriInfo().getPathSegments(name, decode); if (ps.isEmpty()) { return null; } return ps.get(ps.size() - 1); } }
@Override public PathSegment provide() { List<PathSegment> ps = getContainerRequest().getUriInfo().getPathSegments(name, decode); if (ps.isEmpty()) { return null; } return ps.get(ps.size() - 1); } }
@Override public List<PathSegment> provide() { return getContainerRequest().getUriInfo().getPathSegments(name, decode); } }
@Override public List<PathSegment> provide() { return getContainerRequest().getUriInfo().getPathSegments(name, decode); } }
@Override public Object apply(ContainerRequest containerRequest) { List<PathSegment> l = containerRequest.getUriInfo().getPathSegments(decode); PathSegment p = l.get(l.size() - 1); try { return extractor.extract(p.getMatrixParameters()); } catch (ExtractorException e) { throw new ParamException.MatrixParamException(e.getCause(), extractor.getName(), extractor.getDefaultValueString()); } } }
@Override public Object provide() { List<PathSegment> l = getContainerRequest().getUriInfo().getPathSegments(decode); PathSegment p = l.get(l.size() - 1); try { return extractor.extract(p.getMatrixParameters()); } catch (ExtractorException e) { throw new ParamException.MatrixParamException(e.getCause(), extractor.getName(), extractor.getDefaultValueString()); } } }
@Override public Object provide() { List<PathSegment> l = getContainerRequest().getUriInfo().getPathSegments(decode); PathSegment p = l.get(l.size() - 1); try { return extractor.extract(p.getMatrixParameters()); } catch (ExtractorException e) { throw new ParamException.MatrixParamException(e.getCause(), extractor.getName(), extractor.getDefaultValueString()); } } }
@Override public Object provide() { List<PathSegment> l = getContainerRequest().getUriInfo().getPathSegments(decode); PathSegment p = l.get(l.size() - 1); try { return extractor.extract(p.getMatrixParameters()); } catch (ExtractorException e) { throw new ParamException.MatrixParamException(e.getCause(), extractor.getName(), extractor.getDefaultValueString()); } } }