JAVA

Reflection made Easy! JAVA

Reflection made Easy!

I have not done any work prior to using reflection in my Java projects.  A project I was working on I needed to be able to access the Getter/Setter of an object.  I honestly never dreamed it was this easy.  Four simple methods that mak…
HTTP Server Filters in a Jar JAVA

HTTP Server Filters in a Jar

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 t…
HTTP Server Command Handler in a Jar JAVA

HTTP Server Command Handler in a Jar

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 and get status of it, if needed.…
HTTP Server ContextHandler in a Jar JAVA

HTTP Server ContextHandler in a Jar

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 to create Handlers for your HTT…