org.ow2.jonas.ws.publish.internal.file
Class FileWSDLPublisher

java.lang.Object
  extended by org.ow2.jonas.ws.publish.AbsWSDLPublisher
      extended by org.ow2.jonas.ws.publish.internal.file.FileWSDLPublisher
All Implemented Interfaces:
WSDLPublisher

public class FileWSDLPublisher
extends AbsWSDLPublisher
implements WSDLPublisher

In charge of publishing 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
FileWSDLPublisher(Properties props)
          Return a new instance of FileWSDLPublisher.
 
Method Summary
 void publish(PublishableDefinition publishableDefinition)
          publish the given wsdl
 
Methods inherited from class org.ow2.jonas.ws.publish.AbsWSDLPublisher
publish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.jonas.ws.publish.WSDLPublisher
publish
 

Constructor Detail

FileWSDLPublisher

public FileWSDLPublisher(Properties props)
                  throws WSDLPublisherException
Return a new instance of FileWSDLPublisher.

Parameters:
props - Properties used to configure FileWSDLPublisher
Throws:
WSDLPublisherException - When Cannot create the directory (if it don't exist or not set in property file).
Method Detail

publish

public void publish(PublishableDefinition publishableDefinition)
             throws WSDLPublisherException
publish the given wsdl

Specified by:
publish in interface WSDLPublisher
Parameters:
publishableDefinition - the data containing the WSDL file to be published and the publication info
Throws:
WSDLPublisherException - if an error occurs at the publishing.


Copyright © 2010 OW2 Consortium. All Rights Reserved.