added getConsole() in ServerApi, which retrieves the vnc url for a server.
fixed author name
- fixed checkstyle
- fixed testGetConsoleWhenResponseIs404NotFound()
- added testGetConsoleWhenResponseIs401NotAuthorized()
fixed indents
Implemented getVNCConsole(), getSPICECOnsole() and getRDPConsole() as methods of the new ConsolesApi.
Removed previous getConsole() from ServerApi.
switching to enum for console type and URI for console url
added fromValue() in Console.java so that jclouds deserializer parses correctly openstack console responses to Console objects.
minor modifications
- Minor formating changes in Console.java
- use Throwables.propagate in ParseRDPConsoleTest.java, ParseSPICEConsoleTest.java and ParseVNCConsoleTest.java
- run rdp_console.json,spice_console.json and vnc_console.json through JSONLint and add a new line after the last '}'
switched from getVNCConsole(),getSPICEConsole() and getRDPConsole() to one getConsole()
minor indenting
- Added dependency com.squareup.okhttp:mockwebserver with test scope. This will be used for mockstyle tests.
- Added ConsolesApiMockTest, disabled for now, since we need to figure out how to use mockstyle tests with nova zone apis
removed newline to fix the conflict on the previous merge.
removed space changes
- removed @author as per JCLOUDS-546.
- removed @see for openstack website.
- added static import of Objects.toStringHelper()
- added this on toStringHelper() first argument, in Console.java
changed Console.Type enum to be like the one in the jclouds wiki example (https://wiki.apache.org/jclouds/Enums)
- remove unnecessary casting in BindConsoleToJsonPayload
- updated getConsole() javadoc comment
- removed unnecessary assertion in ConsolesApiLiveTest
fix compile issue
added UNRECOGNIZED type to Console.Type enum, and updated fromValue() to use it if nothing else matches
- fixed fromValue() so that it returns UNRECOGNIZED when a type is not known, and null when type is null