/** * This code was auto-generated by a Codezu. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. */ package com.mozu.api.resources.platform.appdev; import com.mozu.api.ApiContext; import java.util.List; import java.util.ArrayList; import com.mozu.api.MozuClient; import com.mozu.api.MozuClientFactory; import com.mozu.api.MozuUrl; import com.mozu.api.Headers; import org.joda.time.DateTime; import com.mozu.api.security.AuthTicket; import org.apache.commons.lang.StringUtils; /** <summary> * This resource is not public. * </summary> */ public class PackageResource { /// /// <see cref="Mozu.Api.ApiContext"/> /// private ApiContext _apiContext; public PackageResource() { _apiContext = null; } public PackageResource(ApiContext apiContext) { _apiContext = apiContext; } /** * This operation is not public. * <p><pre><code> * Package package = new Package(); * Stream stream = package.getFile( applicationKey, fileName); * </code></pre></p> * @param applicationKey The application key uniquely identifies the developer namespace, application ID, version, and package in Dev Center. The format is {Dev Account namespace}.{Application ID}.{Application Version}.{Package name}. * @param fileName * @return Stream * @see Stream */ public java.io.InputStream getFile(String applicationKey, String fileName) throws Exception { MozuClient<java.io.InputStream> client = com.mozu.api.clients.platform.appdev.PackageClient.getFileClient( applicationKey, fileName); client.setContext(_apiContext); client.executeRequest(); return client.getResult(); } }