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. properties required :
- jonas.service.publish.file.directory : directory name where WSDLs will be placed

Author:
Xavier Delplanque

Constructor Summary
FileWSDLHandler(java.util.Properties props)
          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.util.Properties props)
                throws WSServiceException
Return a new instance of FileWSDLHandler.

Parameters:
props - Properties used to configure FileHandler
Throws:
WSServiceException - When Cannot create the directory (if it don't exist or not set in property file).
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.