/** * Route the specified URI to the specified target for an HTTP GET. Since the method to execute is not * specified "index" is used by default. * * @param uri The URI * @param target The target object * @return The route */ default UriRoute TRACE(String uri, Object target) { return TRACE(uri, target, MethodConvention.TRACE.methodName()); }
/** * Route the specified URI to the specified target for an HTTP PATCH. Since the method to execute is not * specified "index" is used by default. * * @param uri The URI * @param target The target object * @return The route */ default UriRoute PATCH(String uri, Object target) { return PATCH(uri, target, MethodConvention.UPDATE.methodName()); }
/** * Route the specified URI to the specified target for an HTTP GET. Since the method to execute is not * specified "index" is used by default. * * @param uri The URI * @param target The target object * @return The route */ default UriRoute HEAD(String uri, Object target) { return HEAD(uri, target, MethodConvention.HEAD.methodName()); }
/** * Route the specified URI to the specified target for an HTTP OPTIONS. Since the method to execute is not * specified "index" is used by default. * * @param uri The URI * @param target The target object * @return The route */ default UriRoute OPTIONS(String uri, Object target) { return OPTIONS(uri, target, MethodConvention.OPTIONS.methodName()); }
/** * <p>Route to the specified object and ID. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param target The object * @param id The route id * @return The route */ default UriRoute PATCH(Object target, PropertyConvention id) { Class<?> type = target.getClass(); return PATCH(getUriNamingStrategy().resolveUri(type, id), target, MethodConvention.UPDATE.methodName(), Object.class); }
/** * <p>Route to the specified object and ID. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param target The object * @param id The route id * @return The route */ default UriRoute TRACE(Object target, PropertyConvention id) { Class<?> type = target.getClass(); return TRACE(getUriNamingStrategy().resolveUri(type, id), target, MethodConvention.TRACE.methodName()); }
/** * <p>Route to the specified object and ID. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param target The object * @param id The route id * @return The route */ default UriRoute PUT(Object target, PropertyConvention id) { Class<?> type = target.getClass(); return PUT(getUriNamingStrategy().resolveUri(type, id), target, MethodConvention.UPDATE.methodName(), Object.class); }
/** * <p>Route to the specified object and ID. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param target The object * @param id The route id * @return The route */ default UriRoute OPTIONS(Object target, PropertyConvention id) { Class<?> type = target.getClass(); return OPTIONS(getUriNamingStrategy().resolveUri(type, id), target, MethodConvention.OPTIONS.methodName()); }
/** * <p>Route to the specified object and ID. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param target The object * @param id The route id * @return The route */ default UriRoute HEAD(Object target, PropertyConvention id) { Class<?> type = target.getClass(); return HEAD(getUriNamingStrategy().resolveUri(type, id), target, MethodConvention.HEAD.methodName()); }
/** * <p>Route to the specified object and ID. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param target The object * @param id The route id * @return The route */ default UriRoute DELETE(Object target, PropertyConvention id) { Class<?> type = target.getClass(); return DELETE(getUriNamingStrategy().resolveUri(type, id), target, MethodConvention.DELETE.methodName(), Object.class); }
/** * <p>Route to the specified class and ID. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param type The class * @param id The route id * @return The route */ default UriRoute POST(Class type, PropertyConvention id) { return POST(getUriNamingStrategy().resolveUri(type, id), type, MethodConvention.UPDATE.methodName()); }
/** * <p>Route to the specified class and ID. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param type The class * @param id The route id * @return The route */ default UriRoute HEAD(Class type, PropertyConvention id) { return HEAD(getUriNamingStrategy().resolveUri(type, id), type, MethodConvention.HEAD.methodName()); }
/** * <p>Route to the specified class. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param type The class * @return The route */ default UriRoute GET(Class type) { return GET(getUriNamingStrategy().resolveUri(type), type, MethodConvention.INDEX.methodName()); }
/** * <p>Route to the specified class and ID. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param type The class * @param id The route id * @return The route */ default UriRoute GET(Class type, PropertyConvention id) { return GET(getUriNamingStrategy().resolveUri(type, id), type, MethodConvention.SHOW.methodName(), Object.class); }
/** * <p>Route to the specified class. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param type The class * @return The route */ default UriRoute DELETE(Class type) { return DELETE(getUriNamingStrategy().resolveUri(type), type, MethodConvention.DELETE.methodName(), Object.class); }
/** * <p>Route to the specified class. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param type The class * @return The route */ default UriRoute PATCH(Class type) { return PATCH(getUriNamingStrategy().resolveUri(type), type, MethodConvention.UPDATE.methodName(), Object.class); }
/** * <p>Route to the specified class and ID. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param type The class * @param id The route id * @return The route */ default UriRoute PATCH(Class type, PropertyConvention id) { return PATCH(getUriNamingStrategy().resolveUri(type, id), type, MethodConvention.UPDATE.methodName(), Object.class); }
/** * <p>Route to the specified class. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param type The class * @return The route */ default UriRoute OPTIONS(Class type) { return OPTIONS(getUriNamingStrategy().resolveUri(type), type, MethodConvention.OPTIONS.methodName()); }
/** * <p>Route to the specified class and ID. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param type The class * @param id The route id * @return The route */ default UriRoute OPTIONS(Class type, PropertyConvention id) { return OPTIONS(getUriNamingStrategy().resolveUri(type, id), type, MethodConvention.OPTIONS.methodName()); }
/** * <p>Route to the specified class. The URI route is built by the configured {@link UriNamingStrategy}.</p> * * @param type The class * @return The route */ default UriRoute HEAD(Class type) { return HEAD(getUriNamingStrategy().resolveUri(type), type, MethodConvention.HEAD.methodName()); }