public UriBuilder path(Method method) throws IllegalArgumentException {
logger.trace("path({}) entry", method); //$NON-NLS-1$
if (method == null) {
throw new IllegalArgumentException(Messages.getMessage("variableIsNull", "method")); //$NON-NLS-1$ //$NON-NLS-2$
}
Path pathAnnotation = method.getAnnotation(Path.class);
if (pathAnnotation == null) {
throw new IllegalArgumentException(Messages.getMessage("methodNotAnnotated", "@javax.ws.rs.Path", method)); //$NON-NLS-1$ //$NON-NLS-2$
}
String path = pathAnnotation.value();
logger.trace("path method annotation is {}", path); //$NON-NLS-1$
path(path);
logger.trace("path() exit"); //$NON-NLS-1$
return this;
}