Java 类retrofit.http.Streaming 实例源码

项目:StreetView    文件:StreetApi.java   
@GET("/maps/api/streetview?")
@Streaming
Call<ResponseBody> getStreetView(@Query("size") String size, @Query("location") String location,
                                 @Query("heading") String heading, @Query("pitch") String pitch,
                                 @Query("fov") String fov, @Query("key") String key);
项目:StreetView    文件:StreetApi.java   
@GET("/maps/api/streetview?")
@Streaming
Call<ResponseBody> getStreetView(@Query("size") String size, @Query("location") String location,
                                 @Query("heading") String heading, @Query("pitch") String pitch,
                                 @Query("fov") String fov, @Query("key") String key);
项目:java-hod-client    文件:ViewDocumentBackend.java   
/**
 * Convert a file to HTML and retrieve the result as a stream containing the HTML using the given token
 * @param token The token to use to authenticate the request
 * @param file The file to view
 * @param params Additional parameters to use for the request
 * @return A response whose InputStream contains the HTML of the document. Use response.getBody().in() to access the
 * html. This stream must be closed after use.
 * @throws HodErrorException
 */
@POST(URL)
@Multipart
@Streaming
Response viewFile(
    @Header("token") AuthenticationToken<?, ?> token,
    @Part("file") TypedOutput file,
    @PartMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:ViewDocumentBackend.java   
/**
 * Convert an object store object to HTML and retrieve the result as a stream containing the HTML using the given
 * token
 * @param token The token to use to authenticate the request
 * @param reference The object store reference to view
 * @param params Additional parameters to use for the request
 * @return A response whose InputStream contains the HTML of the document. Use response.getBody().in() to access the
 * html. This stream must be closed after use.
 * @throws HodErrorException
 */
@GET(URL)
@Streaming
Response viewReference(
    @Header("token") AuthenticationToken<?, ?> token,
    @Query("reference") String reference,
    @QueryMap Map<String, Object> params
) throws HodErrorException;
项目:java-hod-client    文件:ViewDocumentBackend.java   
/**
 * Convert publicly accessible url to HTML and retrieve the result as a stream containing the HTML using the given
 * token
 * @param token The token to use to authenticate the request
 * @param url The url to view
 * @param params Additional parameters to use for the request
 * @return A response whose InputStream contains the HTML of the document. Use response.getBody().in() to access the
 * html. This stream must be closed after use.
 * @throws HodErrorException
 */
@GET(URL)
@Streaming
Response viewUrl(
    @Header("token") AuthenticationToken<?, ?> token,
    @Query("url") String url,
    @QueryMap Map<String, Object> params
) throws HodErrorException;
项目:CSX278    文件:VideoSvcApi.java   
/**
 * This method uses Retrofit's @Streaming annotation to indicate that the
 * method is going to access a large stream of data (e.g., the mpeg video 
 * data on the server). The client can access this stream of data by obtaining
 * an InputStream from the Response as shown below:
 * 
 * VideoSvcApi client = ... // use retrofit to create the client
 * Response response = client.getData(someVideoId);
 * InputStream videoDataStream = response.getBody().in();
 * 
 * @param id
 * @return
 */
@Streaming
   @GET(VIDEO_DATA_PATH)
   Response getData(@Path(ID_PARAMETER) long id);
项目:mobilecloud-15    文件:VideoServiceProxy.java   
/**
 * This method uses Retrofit's @Streaming annotation to indicate
 * that the method is going to access a large stream of data
 * (e.g., the mpeg video data on the server).  The client can
 * access this stream of data by obtaining an InputStream from the
 * Response as shown below:
 * 
 * VideoServiceProxy client = ... // use retrofit to create the client
 * Response response = client.getData(someVideoId); 
 * InputStream videoDataStream = response.getBody().in();
 * 
 * @param id
 * @return Response which contains the actual Video data.
 */
@Streaming
@GET(VIDEO_DATA_PATH)
Response getData(@Path(ID_PARAMETER) long id);
项目:mobilecloud-15    文件:VideoSvcApi.java   
/**
 * This method uses Retrofit's @Streaming annotation to indicate that the
 * method is going to access a large stream of data (e.g., the mpeg video 
 * data on the server). The client can access this stream of data by obtaining
 * an InputStream from the Response as shown below:
 * 
 * VideoSvcApi client = ... // use retrofit to create the client
 * Response response = client.getData(someVideoId);
 * InputStream videoDataStream = response.getBody().in();
 * 
 * @param id
 * @return
 */
@Streaming
   @GET(VIDEO_DATA_PATH)
   Response getVideoData(@Path(ID_PARAMETER) long id);
项目:mobilecloud-15    文件:VideoSvcApi.java   
/**
 * This endpoint should return the video data that has been associated with
 * a Video object or a 404 if no video data has been set yet. The URL scheme
 * is the same as in the method above and assumes that the client knows the ID
 * of the Video object that it would like to retrieve video data for.
 * 
 * This method uses Retrofit's @Streaming annotation to indicate that the
 * method is going to access a large stream of data (e.g., the mpeg video 
 * data on the server). The client can access this stream of data by obtaining
 * an InputStream from the Response as shown below:
 * 
 * VideoSvcApi client = ... // use retrofit to create the client
 * Response response = client.getData(someVideoId);
 * InputStream videoDataStream = response.getBody().in();
 * 
 * @param id
 * @return
 */
@Streaming
   @GET(VIDEO_DATA_PATH)
   Response getData(@Path(ID_PARAMETER) long id);
项目:tapchat-android    文件:TapchatAPI.java   
@GET("/{path}") @Streaming Response oobInclude(@EncodedPath("path") String path);