Programming

Java: Build your own JobManager Programming

Java: Build your own JobManager

So often I see developers turn to open source to implement job management.  These are often far more advanced than what many people really need in their Java applications.  Sure there are times when it is needed and called for, however many t…
Reflection made Easy! Programming

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 make it ex…
AdvancedString – java.lang.String on steroids! Programming

AdvancedString – java.lang.String …

Every need an additional method on the String Class?  Well I have and it would have made life much easier.  Unfortunately you can't subclass String as it is Final.  So what are you to do?  Well you wrap the String class.  I have created Advan…
Advertisements
HTTP Server Filters in a Jar Programming

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 these cl…
HTTP Server Command Handler in a Jar Programming

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 need…