官术网_书友最值得收藏!

Practicality of URLs

When we communicate over sockets, we don't know what type of data format we are dealing with. This may be an issue in a client-server environment where clients are not aware of the kind of data server that would be broadcasted. In this case, either both the parties should be in agreement about the kind of data that will be used for communication, or we should establish our own way of communicating metadata along with primary data that will tell the data type of primary data.

Using Java's classes for HTTP support makes it possible to serve and access data objects with ease in regard to knowing their type and format. To make a document available on a URL, we can deploy the document on the web server along with the respective MIMEType configuration. URLConnection is used to request the URL from any specific client. However, there are issues with this method, which we will discuss next.

First, it adds a lot of overhead to the data stream that leads to bandwidth reduction between communicating systems. The second issue is that the entire data should be serializable to send it over HTTP. The third issue is with respect to the resource naming that HTTP is going to provide, as LDAP and NIS follow the formal naming procedure.

Therefore, we can conclude that for distributed applications where bandwidth is severely limited or where support for complicated resource hierarchies is required, the use of an HTTP protocol is not recommended. Whereas, if you have some extra bandwidth for communication and the performance requirements are not that critical and are relatively simple resource groupings, then the data can be accessed using URLs.

主站蜘蛛池模板: 邯郸市| 靖边县| 虎林市| 福贡县| 财经| 内黄县| 青川县| 楚雄市| 蒲城县| 拉孜县| 皋兰县| 山阳县| 蛟河市| 东阿县| 曲麻莱县| 台安县| 思茅市| 五指山市| 光山县| 杭锦后旗| 张掖市| 鹤峰县| 长兴县| 遂宁市| 海门市| 同心县| 阳山县| 谷城县| 怀仁县| 南昌县| 叙永县| 弥渡县| 吴忠市| 扶余县| 绥阳县| 贞丰县| 桃江县| 盐津县| 财经| 铁力市| 遂川县|