public ImageUrlMap getImageUrls ( List < ImageUrl > requestUrls ) throws SmartsheetException { Util . throwIfNull ( requestUrls ) ; HttpRequest request ; request = createHttpRequest ( smartsheet . getBaseURI ( ) . resolve ( "imageurls" ) , HttpMethod . POST ) ; ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; this . smartsheet . getJsonSerializer ( ) . serialize ( requestUrls , baos ) ; HttpEntity entity = new HttpEntity ( ) ; entity . setContentType ( "application/json" ) ; entity . setContent ( new ByteArrayInputStream ( baos . toByteArray ( ) ) ) ; entity . setContentLength ( baos . size ( ) ) ; request . setEntity ( entity ) ; HttpResponse response = this . smartsheet . getHttpClient ( ) . request ( request ) ; ImageUrlMap obj = null ; switch ( response . getStatusCode ( ) ) { case 200 : try { obj = this . smartsheet . getJsonSerializer ( ) . deserialize ( ImageUrlMap . class , response . getEntity ( ) . getContent ( ) ) ; } catch ( JsonParseException e ) { throw new SmartsheetException ( e ) ; } catch ( JsonMappingException e ) { throw new SmartsheetException ( e ) ; } catch ( IOException e ) { throw new SmartsheetException ( e ) ; } break ; default : handleError ( response ) ; } smartsheet . getHttpClient ( ) . releaseConnection ( ) ; return obj ; }
Gets URLS that can be used to retieve the specified cell images .