Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

raining.server: Javadoc index of package raining.server.


Package Samples:

raining.server

Classes:

DefaultPriorityHandler: a default priority handler - handles priority of read and host (on connect). Connects: Checks a debarred(deny) hosts list and returns -1. Checks a allowed hosts list. if it exists then only these are allowed, all else are debarred. If not, it checks a deny list, all these are denied, all else are allowed. Checks a favored hosts list and returns 1. For all others returns 0. Needs to look into subnets also. Needs to pick from a file. Read: Checks operations. Returns 1 for GET and 0 for POST. Returns -1 for others. Checks resource. returns -1 for some folders returns 1 for some resources returns 0 ...
FileInfo: Maintains cacheable information of a file such as content, when last updated in cache, and methods to update the cache, and tell the cache if it needs updating. TODO: should store as ByteBuffers also i can keep header and content separate, and use a gathered write. First i need to change that in NioSocket. TODO: server_root needs to be set, i think. RK modified on 20031116 14:44:39: header is now part of content. Taken from Bulka's code (Java Performance and Scalability) and modified. This needs to be redone. The server sample wasn't written in an OO manner. I need to look into caching the header. ...
AdvServer: A more functional server that permits handlers and protocols to be defined and passed in. TODO: refactor the http processing out of here, so it can be reused. TODO: read from priority file TODO: handle different mime-types. ?? TODO: handle errors 400: if request not a GET TODO: 304 if not modified since TODO: send last-modified TODO: try later, and close if beyond a limit TODO: flow control, if beyond a limit, rather than just close conn TODO: take care of absolute URL
UrlCache: Object that takes care of caching of a fileinfo object . This should probably implement a ContentCacheManager interface with get and put methods. The FileInfo param should also be a CachedObject class RK modified on 20031029 16:50:28 - added an LinkedHashMap that removes eldest entry after crossing max.
LRUHashMap: An extension of LinkedHashMap that removes eldest accessed entry after crossing the max_entries. Pls note that each access of an LRU obviously changes the underlying list. I need to do some performance testing on this, against some other implementation, or a home grown one.
Processer: Processes incoming request as a runnable thread. This thread is fed to the PooledExecutor.
Incoming: this class represents an incoming TCP socket.
PriorityHandler: Class documentation.

Home | Contact Us | Privacy Policy | Terms of Service