@ POST @ Path ( "create" ) public Map < String , String > create ( @ FormParam ( "uri" ) String uri ) throws GuacamoleException { return Collections . singletonMap ( "identifier" , directory . create ( QCParser . getConfiguration ( uri ) ) ) ; }
Parse the URI read from the POST input add the connection to the directory and return a Map containing a single key identifier and the identifier of the new connection .