| java.lang.Object org.restlet.example.book.rest.ch7.ApplicationTest
ApplicationTest | public class ApplicationTest (Code) | | Client code that can be used to test the application developped in the
chapter 7 of the book and converted to Restlets in the chapter 13.
author: Jerome Louvel (contact@noelios.com) |
Method Summary | |
public static void | deleteBookmark(String userName, String password, String uri) | public static void | deleteUser(String userName, String password) | public static Request | getAuthenticatedRequest(Method method, String uri, String login, String password) Creates an authenticated request.
Parameters: method - The request method. Parameters: uri - The target resource URI. Parameters: login - The login name. Parameters: password - The password. | public static String | getBookmarkUri(String userName, String uri) | public static String | getUserUri(String name) | public static void | main(String... args) Main method to use for testing. | public static void | putBookmark(String userName, String password, String uri, String shortDescription, String longDescription, boolean restrict) | public static void | putUser(String userName, String password, String fullName, String email) |
APPLICATION_URI | final public static String APPLICATION_URI(Code) | | Base application URI.
|
getAuthenticatedRequest | public static Request getAuthenticatedRequest(Method method, String uri, String login, String password)(Code) | | Creates an authenticated request.
Parameters: method - The request method. Parameters: uri - The target resource URI. Parameters: login - The login name. Parameters: password - The password. The authenticated request to use. |
main | public static void main(String... args) throws Exception(Code) | | Main method to use for testing.
Parameters: args - The arguments or nothing for a usage description. |
|
|