/** * Returns the name. * * @return The name. */ @Override public String toString() { return getName(); } }
/** * Returns the name. * * @return The name. */ @Override public String toString() { return getName(); } }
/** * Adds a new Method to the list of registered methods. * * @param method * The method to register. */ public static void register(Method method) { String name = (method == null) ? null : method.getName().toLowerCase(); if ((name != null) && !name.equals("")) { _methods.put(name, method); } }
/** * Adds a new Method to the list of registered methods. * * @param method * The method to register. */ public static void register(Method method) { String name = (method == null) ? null : method.getName().toLowerCase(); if ((name != null) && !name.equals("")) { _methods.put(name, method); } }
/** * @see javax.ws.rs.core.Request#getMethod() */ public String getMethod() { return this.request.getMethod().getName(); }
private static Operation getOperationFromMethod(Method method) { Operation operation = new Operation(); operation.setMethod(method.getName()); return operation; }
private static Operation getOperationFromMethod(Method method) { Operation operation = new Operation(); operation.setMethod(method.getName()); return operation; }
private static Operation getOperationFromMethod(Method method) { Operation operation = new Operation(); operation.setMethod(method.getName()); return operation; }
private static Operation getOperationFromMethod(Method method) { Operation operation = new Operation(); operation.setMethod(method.getName()); return operation; }
private static Operation getOperationFromMethod(Method method) { Operation operation = new Operation(); operation.setMethod(method.getName()); return operation; }
@Override public Method getMethod() { return Method.valueOf(getTarget().getMethod().getName()); }
@Override public RestLink createRestLink( String name, Reference base, Method method, String description ) { ValueBuilder<RestLink> builder = vbf.newValueBuilder( RestLink.class ); RestLink prototype = builder.prototype(); prototype.path().set( base.toUri().resolve( name ).getPath() + "/" ); prototype.method().set( method.getName() ); prototype.description().set( description ); return builder.newInstance(); }