org.objectweb.jonas.ws.handler
Class FileWSDLHandler

java.lang.Object
  extended by org.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 :
- jonas.service.publish.file.directory : directory name where WSDLs will be placed (default to JONAS_BASE/wsdls)
- jonas.service.publish.file.encoding : file encoding (default to UTF-8)
use the wsdl-publish-directory if provided in jonas descriptors.

Author:
Xavier Delplanque, Guillaume Sauthier

Constructor Summary
FileWSDLHandler(java.util.Properties props)
          Return a new instance of FileWSDLHandler.
 
Method Summary
 void publish(ServiceDesc sd)
          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(ServiceDesc sd)
             throws WSServiceException
Publish the given WSDL to the directory location.

Specified by:
publish in interface WSDLHandler
Parameters:
sd - the Service containing the WSDL file to publish.
Throws:
WSServiceException - When publication fails.