判断 http:// 或者 https:// 协议
2013-11-28 23:44
369 查看
本文来自http://blog.csdn.net/u012972188 ,引用必须注明出处!
温馨提醒:为了大家能更好学习,强烈推荐大家看看本人的这篇博客
直接上代码
判断 http:// 或者 https:// 协议
温馨提醒:为了大家能更好学习,强烈推荐大家看看本人的这篇博客直接上代码
public Boolean isHttp(String orignal) { int count = orignal.length(); boolean temBoolean = false; if (count > 8) { if (orignal.startsWith("http://")) { temBoolean = true; // System.out.println("kk--》"); // System.out.println("http://"); } else if (orignal.startsWith("https://")) { temBoolean = true; } } return temBoolean; }
相关文章推荐
- linux性能系列--网络
- 网易面试题---来源于网络
- 分析淘宝网络框架tbnet
- Linux 上的基础网络设备详解
- 使用事件驱动模型实现高效稳定的网络服务器程序
- 基于TCP和多线程实现无线鼠标键盘-Socket(2)
- xp中设置网络桥
- 利用ServerSocket获取浏览器http协议内容
- 关于利用Tcp库来实现文件传输
- HttpWebResponse类的常用属性和方法
- C++网络通信编程一:基础
- Linux系统平台下安装tcpdump问题解决
- http请求过程、POST和GET的区别
- 【自由谈】城域网IPv6过渡技术——NAT64+DNS64
- 基于TCP和多线程实现无线鼠标键盘-Socket(1)
- servlet 服务器HTTP响应头设置示例(response用法)
- servlet 服务器HTTP请求头说明
- TCP、UDP和HTTP
- PDU短信编解码格式说明 官网http://www.3gpp.org/DynaReport/27-series.htm
- 通过压缩数据提高Domino网络传输性能