Jeff Miller

Team to Create Outside the Box

Browsing:

Series: HTTP Server in a Jar

HTTP Server Filters in a Jar

filters

We discussed the HTTP Server ContextHandler in a Jar one of the methods was ContextHandlerInterface.getFilters() this method returns a list of Filters to apply to incoming HTTP Requests.  We subclass com.sun.net.httpserver.Filter for these classes. These can be used to do processing on Read more…


HTTP Server Command Handler in a Jar

filters

Today, I’m going to share with you a command handler for the HTTP Server I presented previously.  This is a handler to extend the abilities of that HTTP Server in a Jar to provide you the ability to stop, restart Read more…


HTTP Server ContextHandler in a Jar

filters

Last time I showed you how to create a basic HTTP Server that you can put into a JAR easily.  Today I’m going to show you how to extend that to include a ContextHandler and AbstractContextHandler to make it easier Read more…


HTTP Server in your Jar

filters

I recently had the need to be able to access a couple of files from a number of computers and didn’t want to setup network shares and things.  These were a simple text files, that I was logging information into. Read more…