250 likes | 262 Views
This document provides an overview of the Eclipse WTP Project Web Service Tools Inventory API, including the provisional API and its key features. It also lists the representative classes and their functionalities.
E N D
Eclipse WTP ProjectWeb Service ToolsInventory of Key Provisional API Chris Brealey 2005.04.29 Eclipse Foundation - www.eclipse.org
Provisional API • Provisional API is provided for: • Web Services Framework • Command Framework • Environment Framework • The API in WTP 1.0 is all provisional instead of public because of the extreme youth of the API and the lack of any third-party extensions besides Apache Axis to help validate the design of the API. As the community begins extending the framework, the API can be validated, revised and promoted to public in a more appropriate release of the Eclipse WTP. • The classes summarized in the following pages are the most representative classes. Visit CVS for the rest. Eclipse Foundation - www.eclipse.org
Web Service Framework • IWebServiceRuntime • IWebService • IWebServiceClient • IWebServiceTester • IWebServicePublisher • WebServiceInfo • WebServiceClientInfo • TestInfo • IObjectSelector Eclipse Foundation - www.eclipse.org
IWebServiceRuntime • package org.eclipse.wst.ws.internal.provisional.wsrt • public interface IWebServiceRuntime{ public IWebService getWebService( WebServiceInfo info ); public IWebServiceClient getWebServiceClient( WebServiceClientInfo info ); public ICommandFactory announce( IWebService webService );} • Objects of this class represent known Web service runtimes, and act as factories for instances of known Web services and Web service clients. • Objects of this class can also contribute code that announces the successful deployment of a Web service, however, this method may move to IWebService. Eclipse Foundation - www.eclipse.org
IWebService • package org.eclipse.wst.ws.internal.provisional.wsrt • public interface IWebService{ public WebServiceInfo getWebServiceInfo(); public ICommandFactory develop( Environment env, IContext ctx, ISelection sel, String project, String module, String earProject, String ear ); public ICommandFactory deploy( /* as above */ ); public ICommandFactory assemble( /* as above */ ); public ICommandFactory install( /* as above */ ); public ICommandFactory run( /* as above */ );} Eclipse Foundation - www.eclipse.org
IWebServiceClient • package org.eclipse.wst.ws.internal.provisional.wsrt • public interface IWebServiceClient{ public WebServiceClientInfo getWebServiceClientInfo(); public ICommandFactory develop( Environment env, IContext ctx, ISelection sel, String project, String module, String earProject, String ear ); public ICommandFactory deploy( /* as above */ ); public ICommandFactory assemble( /* as above */ ); public ICommandFactory install( /* as above */ ); public ICommandFactory run( /* as above */ );} Eclipse Foundation - www.eclipse.org
IWebServiceTester • package org.eclipse.wst.ws.internal.provisional.wsrt • public interface IWebServiceTester{ public ICommandFactory generate( TestInfo testInfo ); public ICommandFactory launch( TestInfo testInfo );} Eclipse Foundation - www.eclipse.org
IWebServicePublisher • package org.eclipse.wst.ws.internal.provisional.wsrt • public interface IWebServicePublisher{ public ICommandFactory publish( Environment env, IWebService ws );} Eclipse Foundation - www.eclipse.org
WebServiceInfo • package org.eclipse.wst.ws.internal.provisional.wsrt • public class WebServiceInfo... • WebServiceState state; • String servletLevel; • String j2eeLevel; • String serverFactoryId; • String serverInstanceId; • String webServiceRuntimeId; • String wsdlURL; • String endPointURL; • String implURL; Eclipse Foundation - www.eclipse.org
WebServiceClientInfo • package org.eclipse.wst.ws.internal.provisional.wsrt • public class WebServiceClientInfo... • WebServiceState state; • String servletLevel; • String j2eeLevel; • String serverFactoryId; • String serverInstanceId; • String webServiceRuntimeId; • String wsdlURL; • String implURL; Eclipse Foundation - www.eclipse.org
TestInfo • package org.eclipse.wst.ws.internal.provisional.wsrt • public class TestInfo... • String jspFolder; • String generationProject; • String serviceProject; • String proxyBean; • String setEndpointMethod; • String clientProject; • BooleanSelection[] methods; • String serviceServerTypeID; • String clientServerTypeID; • IServer serviceExistingServer; • IServer clientExistingServer; • List endpoints; • String wsdlServiceURL; Eclipse Foundation - www.eclipse.org
IObjectSelector • package org.eclipse.wst.ws.internal.provisional.ui.wsrt • public interface IObjectSelector{ public void setInitialSelection( ISelection sel ); public ISelection getSelection(); public String getProject(); public Status validateSelection( ISelection sel ); public WidgetDataEvents addControls( Composite parent, Listener statusListener );} Eclipse Foundation - www.eclipse.org
Command Framework • Command • ICommandFactory Eclipse Foundation - www.eclipse.org
Command • package org.eclipse.wst.command.internal.provisional.env.core • public interface Command{ public String getName(); public String getDescription(); public boolean isUndoable(); public boolean isRedoable();public Status execute( Environment env ); public Status undo( Environment env ); public Status redo( Environment env );} • Intention: Converge with Eclipse commands and J2EE operations. Eclipse Foundation - www.eclipse.org
ICommandFactory • package org.eclipse.wst.command.internal.provisional.env.core • public interface ICommandFactory extends Iterator { public Command getNextCommand();} Eclipse Foundation - www.eclipse.org
Environment Framework • Environment • ProgressMonitor • StatusHandler • CommandManagerURIFactory • URIScheme • URI • INamedWidgetContributor • INamedWidgetContributorFactory Eclipse Foundation - www.eclipse.org
Environment • package org.eclipse.wst.command.internal.provisional.env.core.common • public interface Environment{ public Log getLog (); public ProgressMonitor getProgressMonitor (); public StatusHandler getStatusHandler (); public URIFactory getURIFactory (); public CommandManager getCommandManager ();} Eclipse Foundation - www.eclipse.org
ProgressMonitor • package org.eclipse.wst.command.internal.provisional.env.core.common • public interface ProgressMonitor{ public void report( String message ); public progressMonitor getChildProgressMonitor(); public boolean isCancelRequested();} Eclipse Foundation - www.eclipse.org
StatusHandler • package org.eclipse.wst.command.internal.provisional.env.core.common • public interface StatusHandler{ public Choice report ( Status status, Choice[] choices ); public void report ( Status status ) throws StatusException; public void reportError( Status status ); public void reportInfo( Status status );} Eclipse Foundation - www.eclipse.org
CommandManager • package org.eclipse.wst.command.internal.provisional.env.core.common • public interface CommandManager{ public boolean isUndoEnabled(); public DataMappingRegistry getMappingRegistry();} Eclipse Foundation - www.eclipse.org
URIFactory • package org.eclipse.wst.command.internal.provisional.env.core.uri • public interface URIFactory{ public URI newURI( String uri ) throws URIException; public URI newURI( URL url ) throws URIException; public URIScheme newURIScheme( String schemeOrURI );} Eclipse Foundation - www.eclipse.org
URIScheme • package org.eclipse.wst.command.internal.provisional.env.core.uri • public interface URIScheme{ public URI newURI ( String uri ) throws URIException; public URI newURI ( URL url ) throws URIException; public URI newURI ( URI uri ) throws URIException; public String toString (); public boolean isHierarchical (); public boolean isValid ( URI uri ); public Status validate ( URI uri );} Eclipse Foundation - www.eclipse.org
URI • package org.eclipse.wst.command.internal.provisional.env.core.uri • public interface URI{ public String toString (); public URIScheme getURIScheme (); public boolean isPresent (); public boolean isLeaf (); public boolean isReadable (); public boolean isWritable (); public boolean isHierarchical (); public boolean isRelative (); public URI parent () throws URIException; public URI append ( URI relativeURI ) throws URIException; public InputStream getInputStream () throws URIException; public OutputStream getOutputStream () throws URIException; public void touchLeaf () throws URIException; public void touchFolder () throws URIException; public void erase () throws URIException; public void rename ( URI newURI ) throws URIException; public void visit ( URIVisitor uriVisitor ) throws URIException; public void visit ( URIVisitor uriVisitor, URIFilter uriFilter ) throws URIException; public URI[] list () throws URIException; public URI[] list ( URIFilter uriFilter ) throws URIException; public boolean isAvailableAsURL (); public URL asURL () throws URIException; public boolean isAvailableAsFile (); public File asFile () throws URIException; public String asString ();} Eclipse Foundation - www.eclipse.org
INamedWidgetContributor • package org.eclipse.wst.command.internal.provisional.env.ui.widgets • public interface INamedWidgetContributor{ public WidgetContributorFactory getWidgetContributorFactory(); public String getName (); public String getDescription (); public String getTitle();} Eclipse Foundation - www.eclipse.org
INamedWidgetContributorFactory • package org.eclipse.wst.command.internal.provisional.env.ui.widgets • public interface INamedWidgetContributorFactory{ public INamedWidgetContributor getFirstNamedWidget(); public INamedWidgetContributor getNextNamedWidget( INamedWidgetContributor widgetContributor ); public void registerDataMappings( DataMappingRegistry dataRegistry );} Eclipse Foundation - www.eclipse.org