public static HttpURLConnection updateMessage ( final URI uri , final QueueRequestOptions queueOptions , final OperationContext opContext , final String popReceipt , final int visibilityTimeoutInSeconds ) throws URISyntaxException , IOException , StorageException { final UriQueryBuilder builder = new UriQueryBuilder ( ) ; builder . add ( POP_RECEIPT , popReceipt ) ; builder . add ( VISIBILITY_TIMEOUT , Integer . toString ( visibilityTimeoutInSeconds ) ) ; final HttpURLConnection request = BaseRequest . createURLConnection ( uri , queueOptions , builder , opContext ) ; request . setDoOutput ( true ) ; request . setRequestMethod ( Constants . HTTP_PUT ) ; return request ; }
Constructs a web request to update the visibility timeout of a message in the queue . Optionally updates the message content if a message request body is written to the output stream of the web request . The web request should be signed with the length of the encoded message request body if one is included or a length of 0 if no message request body is included .