@@ -747,14 +747,17 @@ public static WebServiceProxy get(URL url) {
747747 * @param path
748748 * The path to the resource, relative to the base URL.
749749 *
750+ * @param args
751+ * Path format specifier arguments.
752+ *
750753 * @throws MalformedURLException
751754 * If a URL cannot be constructed from the base URL and path.
752755 *
753756 * @return
754757 * The new web service proxy.
755758 */
756- public static WebServiceProxy get (URL baseURL , String path ) throws MalformedURLException {
757- return get (new URL (baseURL , path ));
759+ public static WebServiceProxy get (URL baseURL , String path , Object ... args ) throws MalformedURLException {
760+ return get (new URL (baseURL , String . format ( path , args ) ));
758761 }
759762
760763 /**
@@ -779,14 +782,17 @@ public static WebServiceProxy post(URL url) {
779782 * @param path
780783 * The path to the resource, relative to the base URL.
781784 *
785+ * @param args
786+ * Path format specifier arguments.
787+ *
782788 * @throws MalformedURLException
783789 * If a URL cannot be constructed from the base URL and path.
784790 *
785791 * @return
786792 * The new web service proxy.
787793 */
788- public static WebServiceProxy post (URL baseURL , String path ) throws MalformedURLException {
789- return post (new URL (baseURL , path ));
794+ public static WebServiceProxy post (URL baseURL , String path , Object ... args ) throws MalformedURLException {
795+ return post (new URL (baseURL , String . format ( path , args ) ));
790796 }
791797
792798 /**
@@ -811,14 +817,17 @@ public static WebServiceProxy put(URL url) {
811817 * @param path
812818 * The path to the resource, relative to the base URL.
813819 *
820+ * @param args
821+ * Path format specifier arguments.
822+ *
814823 * @throws MalformedURLException
815824 * If a URL cannot be constructed from the base URL and path.
816825 *
817826 * @return
818827 * The new web service proxy.
819828 */
820- public static WebServiceProxy put (URL baseURL , String path ) throws MalformedURLException {
821- return put (new URL (baseURL , path ));
829+ public static WebServiceProxy put (URL baseURL , String path , Object ... args ) throws MalformedURLException {
830+ return put (new URL (baseURL , String . format ( path , args ) ));
822831 }
823832
824833 /**
@@ -843,14 +852,17 @@ public static WebServiceProxy delete(URL url) {
843852 * @param path
844853 * The path to the resource, relative to the base URL.
845854 *
855+ * @param args
856+ * Path format specifier arguments.
857+ *
846858 * @throws MalformedURLException
847859 * If a URL cannot be constructed from the base URL and path.
848860 *
849861 * @return
850862 * The new web service proxy.
851863 */
852- public static WebServiceProxy delete (URL baseURL , String path ) throws MalformedURLException {
853- return delete (new URL (baseURL , path ));
864+ public static WebServiceProxy delete (URL baseURL , String path , Object ... args ) throws MalformedURLException {
865+ return delete (new URL (baseURL , String . format ( path , args ) ));
854866 }
855867}
856868
0 commit comments