The Problem:
I need to receive different types of content from a number of different sources normalize them and then make them persistent through JDO.
Naive Solution?:
Create and listen on a specific port for each data type.
OR
Do a bunch of complicated parsing
A Seemingly Ideal Solution:
Have custom URL types Ie. FOO://myhost.tld, BAR://myhost.tld. any application could then send to the URL specific to the custom type and the host would idealy use java's URLConnection and URLStreamHandler abstract classes to create a factory that would spawn the appropriate normalization thread. Or if there is anyway other way to retrieve the connection URL I think that would be sufficient
Is this possible? I have looked through the API and other docs put cannot figure out if it is possible to use these with a java server socket.
I should mention that in some (many? most?) cases I am not responsible for the client code.