public static ServiceDependencyBuilder restServiceDependency ( final String url ) { return new ServiceDependencyBuilder ( ) . withUrl ( url ) . withType ( ServiceDependency . TYPE_SERVICE ) . withSubtype ( ServiceDependency . SUBTYPE_REST ) . withMethods ( singletonList ( "GET" ) ) . withMediaTypes ( singletonList ( "application/json" ) ) ; }
Creates a ServiceDependencyBuilder with type = service and subtype = REST .