Back to project page box-android-sdk-v2-master.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRI...
If you think the Android project box-android-sdk-v2-master listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.box.boxandroidlibv2; /*w w w . j a va 2 s . c o m*/ import com.box.boxjavalibv2.BoxConfig; public class BoxAndroidConfig extends BoxConfig { /** Default User-Agent String. */ private static final String USER_AGENT = "BoxAndroidLibraryV2"; /** User-Agent String to use. */ private String mUserAgent = USER_AGENT; private static BoxAndroidConfig config; private BoxAndroidConfig() { super(); } public static BoxAndroidConfig getInstance() { if (config == null) { config = new BoxAndroidConfig(); } return config; } /** * Set the String to use as the User-Agent HTTP header. * * @param agent * User-Agent String */ @Override public void setUserAgent(final String agent) { mUserAgent = agent; } /** * Get the User-Agent String to apply to the HTTP(S) calls. * * @return String to use for User-Agent. */ @Override public String getUserAgent() { return mUserAgent; } }