org.objectweb.jonas.ws.handler
Class FileWSDLHandler

java.lang.Object
  extended byorg.objectweb.jonas.ws.handler.FileWSDLHandler
All Implemented Interfaces:
WSDLHandler

public class FileWSDLHandler
extends java.lang.Object
implements WSDLHandler

In charge of published a given WSDL in a directory.


Constructor Summary
FileWSDLHandler(java.lang.String directory)
          Return a new instance of FileWSDLHandler.
 
Method Summary
 void publish(WSDLFile wsdl)
          Publish the given WSDL to the directory location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileWSDLHandler

public FileWSDLHandler(java.lang.String directory)
                throws WSServiceException
Return a new instance of FileWSDLHandler.

Parameters:
directory - the directory to publish WSDLs
Throws:
WSServiceException - When Cannot create the directory (if it don't exist).
Method Detail

publish

public void publish(WSDLFile wsdl)
             throws WSServiceException
Publish the given WSDL to the directory location.

Specified by:
publish in interface WSDLHandler
Parameters:
wsdl - the wsdl file to publish.
Throws:
WSServiceException - When publication fails.