1c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath/* 23c938a3f6b61ce5e2dba0d039b03fe73b89fd26cNeil Fuller * Copyright (C) 2014 Square, Inc. 3c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * 4c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * Licensed under the Apache License, Version 2.0 (the "License"); 5c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * you may not use this file except in compliance with the License. 6c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * You may obtain a copy of the License at 7c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * 8c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * http://www.apache.org/licenses/LICENSE-2.0 9c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * 10c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * Unless required by applicable law or agreed to in writing, software 11c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * distributed under the License is distributed on an "AS IS" BASIS, 12c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * See the License for the specific language governing permissions and 14c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath * limitations under the License. 15c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath */ 16e78f117bcbd6b57d783737107f445ef75ecb474aNeil Fullerpackage com.squareup.okhttp.internal; 17c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath 18e78f117bcbd6b57d783737107f445ef75ecb474aNeil Fullerpublic final class Version { 19e78f117bcbd6b57d783737107f445ef75ecb474aNeil Fuller public static String userAgent() { 20e78f117bcbd6b57d783737107f445ef75ecb474aNeil Fuller String agent = System.getProperty("http.agent"); 21e78f117bcbd6b57d783737107f445ef75ecb474aNeil Fuller return agent != null ? agent : ("Java" + System.getProperty("java.version")); 22e78f117bcbd6b57d783737107f445ef75ecb474aNeil Fuller } 23e78f117bcbd6b57d783737107f445ef75ecb474aNeil Fuller 24e78f117bcbd6b57d783737107f445ef75ecb474aNeil Fuller private Version() { 2554cf3446000fdcf88a9e62724f7deb0282e98da1jwilson } 26c3f6f16bd4a2338e88275641b9f2f56e816ca377Narayan Kamath} 27