You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-dev@ws.apache.org by ip...@apache.org on 2005/05/13 22:53:41 UTC
svn commit: r170087 - in
/incubator/apollo/trunk/src/java/org/apache/ws/resource: ./
metadataexchange/v2004_09/ metadataexchange/v2004_09/porttype/
metadataexchange/v2004_09/porttype/impl/
Author: ips
Date: Fri May 13 13:53:40 2005
New Revision: 170087
URL: http://svn.apache.org/viewcvs?rev=170087&view=rev
Log:
misc minor
Removed:
incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/GetPortType.java
Modified:
incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceHome.java
incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/MetadataExchangeConstants.java
incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/MetadataExchangePortType.java
incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/impl/MetadataExchangePortTypeImpl.java
Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceHome.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceHome.java?rev=170087&r1=170086&r2=170087&view=diff
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceHome.java (original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/ResourceHome.java Fri May 13 13:53:40 2005
@@ -17,7 +17,6 @@
import org.apache.ws.addressing.EndpointReference;
-
/**
* Defines a basic interface through which resources are discovered, and removed. The purpose of
* <code>ResourceHome</code> is to interact with a collection of resources of the same type. Each resource type will
@@ -26,115 +25,123 @@
*/
public interface ResourceHome extends ResourceCreation, ResourceDestruction
{
- /**
- * The resource key type. The <code>ResourceKey</code> used or passed to this <code>ResourceHome</code> must have
- * match this type (corresponds to {@link ResourceKey#getValue() ResourceKey.getValue()}).
- *
- * @return the type of the key.
- */
- String getResourceKeyClassName( );
-
- /**
- * The name of the resource key. The <code>ResourceKey</code> used or passed to this <code>ResourceHome</code> must
- * have match this name (corresponds to {@link ResourceKey#getName() ResourceKey.getName()}).
- *
- * @return the name of the key.
- */
- String getResourceKeyName( );
-
- /**
- * Sets the classname of the Resource Impl.
- *
- * @param className The class name of the Resource Impl.
- */
- void setResourceClassName( String className );
-
- /**
- * Returns the Class of the Resource Impl.
- *
- * @return The Class of the Resource Impl
- *
- */
- String getResourceClassName( );
-
- /**
- * Sets the Class of the ResourceKey Impl
- *
- * @param className The class name of the ResourceKey impl
- */
- void setResourceKeyClassName( String className );
-
- /**
- * Sets the ResourceKey QName as a String value.
- * (i.e. QName.toString()... i.e. {http://...}ResourceId
- *
- * @param keyName The QName.toString() representation of the ResourceKey
- */
- void setResourceKeyName( String keyName );
-
- /**
- * Sets the Service Impl's .Class
- *
- * @param className String representation of the class
- */
- void setServiceClassName( String className );
-
- /**
- * Returns the Service Impl's .Class
- *
- * @return Class of the Service Impl.
- *
- */
- String getServiceClassName( );
-
- /**
- * Set the target namespace of the wsdl of this home's service
- *
- * @param targetNamespace
- */
- void setWsdlTargetNamespace( String targetNamespace );
-
- /**
- * Returns the Target Namespace of the WSDL
- *
- * @return The String of the targetnamespace
- */
- String getWsdlTargetNamespace( );
-
- /**
- * Retrives a resource. <b>Note:</b> This function must not return null. It must return the resource object or throw
- * an exception if there is no resource with the specified key.
- *
- * @return non-null resource object.
- *
- * @throws ResourceUnknownException if no resource exists with the given key
- * @throws InvalidResourceKeyException if the resource key is invalid.
- * @throws ResourceException if any other error occurs.
- */
- Resource find( ResourceKey key )
- throws ResourceException,
- ResourceUnknownException,
- InvalidResourceKeyException;
-
- /**
- * Removes a resource. If the resource implements the {@link RemoveCallback RemoveCallback} interface, the
- * implementation must invoke the remove() operation on the resource itself.
- *
- * @throws ResourceUnknownException if no resource exists with the given key
- * @throws InvalidResourceKeyException if the resource key is invalid.
- * @throws RemoveNotSupportedException if remove operation is not supported.
- * @throws ResourceException if any other error occurs.
- */
- void remove( ResourceKey key )
- throws ResourceException,
- ResourceUnknownException,
- InvalidResourceKeyException,
- RemoveNotSupportedException;
-
- public Resource getInstance( ResourceContext resourceContext )
- throws ResourceException,
- ResourceContextException,
- ResourceUnknownException;
-
- EndpointReference getEndpointReference(String endpointAddress, ResourceKey key, String wsAddressingURI);
+ /**
+ * The resource key type. The <code>ResourceKey</code> used or passed to this <code>ResourceHome</code> must have
+ * match this type (corresponds to {@link ResourceKey#getValue() ResourceKey.getValue()}).
+ *
+ * @return the type of the key.
+ */
+ String getResourceKeyClassName();
+
+ /**
+ * The name of the resource key. The <code>ResourceKey</code> used or passed to this <code>ResourceHome</code> must
+ * have match this name (corresponds to {@link ResourceKey#getName() ResourceKey.getName()}).
+ *
+ * @return the name of the key.
+ */
+ String getResourceKeyName();
+
+ /**
+ * Sets the classname of the Resource Impl.
+ *
+ * @param className The class name of the Resource Impl.
+ */
+ void setResourceClassName( String className );
+
+ /**
+ * Returns the Class of the Resource Impl.
+ *
+ * @return The Class of the Resource Impl
+ */
+ String getResourceClassName();
+
+ /**
+ * Sets the Class of the ResourceKey Impl
+ *
+ * @param className The class name of the ResourceKey impl
+ */
+ void setResourceKeyClassName( String className );
+
+ /**
+ * Sets the ResourceKey QName as a String value. (i.e. QName.toString()... i.e. {http://...}ResourceId
+ *
+ * @param keyName The QName.toString() representation of the ResourceKey
+ */
+ void setResourceKeyName( String keyName );
+
+ /**
+ * Sets the Service Impl's .Class
+ *
+ * @param className String representation of the class
+ */
+ void setServiceClassName( String className );
+
+ /**
+ * Returns the Service Impl's .Class
+ *
+ * @return Class of the Service Impl.
+ */
+ String getServiceClassName();
+
+ /**
+ * Set the target namespace of the wsdl of this home's service
+ *
+ * @param targetNamespace
+ */
+ void setWsdlTargetNamespace( String targetNamespace );
+
+ /**
+ * Returns the Target Namespace of the WSDL
+ *
+ * @return The String of the targetnamespace
+ */
+ String getWsdlTargetNamespace();
+
+ /**
+ * Retrives a resource. <b>Note:</b> This function must not return null. It must return the resource object or throw
+ * an exception if there is no resource with the specified key.
+ *
+ * @return non-null resource object.
+ *
+ * @throws ResourceUnknownException if no resource exists with the given key
+ * @throws InvalidResourceKeyException if the resource key is invalid.
+ * @throws ResourceException if any other error occurs.
+ */
+ Resource find( ResourceKey key )
+ throws ResourceException,
+ ResourceUnknownException,
+ InvalidResourceKeyException;
+
+ /**
+ * Removes a resource. If the resource implements the {@link RemoveCallback RemoveCallback} interface, the
+ * implementation must invoke the remove() operation on the resource itself.
+ *
+ * @throws ResourceUnknownException if no resource exists with the given key
+ * @throws InvalidResourceKeyException if the resource key is invalid.
+ * @throws RemoveNotSupportedException if remove operation is not supported.
+ * @throws ResourceException if any other error occurs.
+ */
+ void remove( ResourceKey key )
+ throws ResourceException,
+ ResourceUnknownException,
+ InvalidResourceKeyException,
+ RemoveNotSupportedException;
+
+ /**
+ * TODO
+ */
+ Resource getInstance( ResourceContext resourceContext )
+ throws ResourceException,
+ ResourceContextException,
+ ResourceUnknownException;
+
+ /**
+ * TODO
+ *
+ * @param endpointAddress
+ * @param key
+ * @param wsAddressingURI
+ * @return
+ */
+ EndpointReference getEndpointReference( String endpointAddress, ResourceKey key, String wsAddressingURI );
}
Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/MetadataExchangeConstants.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/MetadataExchangeConstants.java?rev=170087&r1=170086&r2=170087&view=diff
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/MetadataExchangeConstants.java (original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/MetadataExchangeConstants.java Fri May 13 13:53:40 2005
@@ -1,28 +1,42 @@
+/*=============================================================================*
+ * Copyright 2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *=============================================================================*/
package org.apache.ws.resource.metadataexchange.v2004_09;
-
/**
* @author Sal Campana
*/
public class MetadataExchangeConstants
{
/**
- * The namespace uri
+ * The namespace URI
*/
public static final String NSURI = "http://schemas.xmlsoap.org/ws/2004/09/mex";
/**
* The prefix to be used
*/
- public static final String NSPREFIX = "wsx";
+ public static final String NSPREFIX = "wsmex";
/**
- * WS-Addressing Action URI for Get request
+ * wsa:Action URI for Get request
*/
public static final String ACTION_GET = NSURI + "/Get/Request";
/**
- * WS-Addressing Action URI for GetMetadata request
+ * wsa:Action URI for GetMetadata request
*/
public static final String ACTION_GETMETADATA = NSURI + "/GetMetadata/Request";
Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/MetadataExchangePortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/MetadataExchangePortType.java?rev=170087&r1=170086&r2=170087&view=diff
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/MetadataExchangePortType.java (original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/MetadataExchangePortType.java Fri May 13 13:53:40 2005
@@ -1,3 +1,18 @@
+/*=============================================================================*
+ * Copyright 2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *=============================================================================*/
package org.apache.ws.resource.metadataexchange.v2004_09.porttype;
import org.apache.ws.resource.metadataexchange.v2004_09.MetadataExchangeConstants;
@@ -8,7 +23,7 @@
import javax.xml.namespace.QName;
/**
- * @author Sal Campana
+ * The WS-MEX MetadataExchange portType.
*/
public interface MetadataExchangePortType
{
Modified: incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/impl/MetadataExchangePortTypeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/impl/MetadataExchangePortTypeImpl.java?rev=170087&r1=170086&r2=170087&view=diff
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/impl/MetadataExchangePortTypeImpl.java (original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/metadataexchange/v2004_09/porttype/impl/MetadataExchangePortTypeImpl.java Fri May 13 13:53:40 2005
@@ -1,3 +1,18 @@
+/*=============================================================================*
+ * Copyright 2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *=============================================================================*/
package org.apache.ws.resource.metadataexchange.v2004_09.porttype.impl;
import org.apache.ws.resource.AbstractPortType;
@@ -36,6 +51,8 @@
/**
+ * An implementation of the WS-MEX MetadataExchange portType.
+ *
* @author Sal Campana
*/
public class MetadataExchangePortTypeImpl extends AbstractPortType implements MetadataExchangePortType
---------------------------------------------------------------------
To unsubscribe, e-mail: apollo-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: apollo-dev-help@ws.apache.org