Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.text.TextUtils;

public class Main {
    public final static String QINIU_TEST2 = "http://static-dev.qxinli.com/";
    public final static String QINIU_TEST = "http://7xnwnf.com2.z0.glb.qiniucdn.com";
    public final static String QINIU_WWW = "http://static.qxinli.com/";

    public static boolean isQiniu(String url) {
        boolean isQiniu = false;
        if (TextUtils.isEmpty(url)) {
            return false;
        }
        isQiniu = url.contains(QINIU_WWW) || url.contains(QINIU_TEST) || url.contains(QINIU_TEST2)
                || url.contains("?imageMogr2") || url.contains("?imageView2") || url.contains("?imageView");
        return isQiniu;

    }
}