org.fourthline.cling.transport.impl
Class FixedSunURLStreamHandler

java.lang.Object
  extended by org.fourthline.cling.transport.impl.FixedSunURLStreamHandler
All Implemented Interfaces:
URLStreamHandlerFactory

public class FixedSunURLStreamHandler
extends Object
implements URLStreamHandlerFactory

The SUNW morons restrict the JDK handlers to GET/POST/etc for "security" reasons.

They do not understand HTTP. This is the hilarious comment in their source:

"This restriction will prevent people from using this class to experiment w/ new HTTP methods using java. But it should be placed for security - the request String could be arbitrarily long."

Author:
Christian Bauer

Constructor Summary
FixedSunURLStreamHandler()
           
 
Method Summary
 URLStreamHandler createURLStreamHandler(String protocol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedSunURLStreamHandler

public FixedSunURLStreamHandler()
Method Detail

createURLStreamHandler

public URLStreamHandler createURLStreamHandler(String protocol)
Specified by:
createURLStreamHandler in interface URLStreamHandlerFactory


Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.