Back to project page EnterpriseShow.
The source code is released under:
This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...
If you think the Android project EnterpriseShow 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.ruixinyuan.producttrainingfinal.utils.net; /*/*from w ww .jav a 2s. c o m*/ *@user vicentliu *@time 2013-7-3????1:55:30 *@package com.ruixinyuan.producttrainingfinal.utils.net */ public class APNMatchTools { public static class APNNet { public static String CMWAP = "cmwap"; public static String CMNET = "cmnet"; public static String GWAP_3 = "3gwap"; public static String GNET_3="3gnet"; public static String UNIWAP="uniwap"; public static String UNINET="uninet"; } public static String matchAPN (String curName) { if ("".equals(curName) || null == curName) return ""; curName = curName.toLowerCase(); if (curName.startsWith(APNNet.CMWAP)) return APNNet.CMWAP; else if (curName.startsWith(APNNet.CMNET)) return APNNet.CMNET; else if (curName.startsWith(APNNet.GNET_3)) return APNNet.GNET_3; else if (curName.startsWith(APNNet.GWAP_3)) return APNNet.GWAP_3; else if (curName.startsWith(APNNet.UNINET)) return APNNet.UNINET; else if (curName.startsWith(APNNet.UNIWAP)) return APNNet.UNIWAP; else if (curName.startsWith("default")) return "default"; return ""; } }