Hi XWiki-Fans,

i am starting a REST-Client for XWiki and want to code a small Client. I
uploaded the main-class to 
http://www.file-upload.net/download-8990392/RestfulClient.java.html
<http://www.file-upload.net/download-8990392/RestfulClient.java.html>  .

Since yesterday i have a working GET and PUT-Method for a Page. You can
start it with



You have an idea how i can "compress" the method /createMethodGet(UriBuilder
builder)/ and /putPage(String wiki, String space, Page page)/ in a elegant
way. They are so big and i want to add also methods for objects, classes and
so on. Also the Delete-Method is needed. When i do that in the actual way i
produce a lot of redundant lines which i want to avoid.

I have not really a problem, its more like a puzzle with the question how to
split the logic in a nice way.

Regards,
Matthias



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Code-minimization-in-RESTful-Client-tp7590804.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to