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 sc...@apache.org on 2005/02/25 17:09:49 UTC
svn commit: r155339 [1/2] -
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl
Author: scamp
Date: Fri Feb 25 08:09:44 2005
New Revision: 155339
URL: http://svn.apache.org/viewcvs?view=rev&rev=155339
Log:
reformatted
Modified:
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortResource.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortService.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryResource.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryService.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortResource.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortService.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortCustomOperationsPortType.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortHome.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortPropertyQNames.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortResource.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortService.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryCustomOperationsPortType.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryHome.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryResource.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryService.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortCustomOperationsPortType.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortHome.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortPropertyQNames.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortResource.java
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortService.java
Modified: incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortResource.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortResource.java?view=diff&r1=155338&r2=155339
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortResource.java (original)
+++ incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortResource.java Fri Feb 25 08:09:44 2005
@@ -1,125 +1,154 @@
-
+/*=============================================================================*
+ * Copyright 2004 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.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
/**
* An abstract JobPort WS-Resource.
* <p/>
- * NOTE: This class is generated and is NOT meant to be modified.
+ * NOTE: This class is generated and is NOT meant to be modified.
*/
-public abstract class AbstractJobPortResource implements org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource, org.apache.ws.resource.PropertiesResource {
-
- /**
- * The resource ID of the instance.
- */
- protected String m_id;
-
- /**
- * The set of properties associated with this resource.
- */
- protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
-
- /**
- * DOCUMENT_ME
- *
- * @param id DOCUMENT_ME
- */
- public void setID( Object id )
- {
- if ( m_id != null )
- {
- throw new IllegalStateException( "This resource's ID has already been set." );
- }
-
- try
- {
- m_id = (String) id;
- }
- catch ( ClassCastException cce )
- {
- throw new IllegalArgumentException( "Specified ID is not a String." );
- }
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public Object getID()
- {
- return m_id;
- }
-
- public void destroy()
- {
- return;
- }
-
- public void init()
- {
-
- org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument propsDoc = org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.Factory.newInstance();
- m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
-
- // initialize wsrl:CurrentTime property
- org.apache.ws.resource.properties.ResourceProperty prop = m_propSet.get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_CURRENT_TIME );
- org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.CurrentTimeDocument currTime = org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.CurrentTimeDocument.Factory.newInstance();
- currTime.setCurrentTime( java.util.Calendar.getInstance() );
- prop.add( currTime );
- prop.setCallback( new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback() );
-
- // initialize wsrl:TerminationTime property
- prop = m_propSet.get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_TERMINATION_TIME );
- org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.TerminationTimeDocument termTime = org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.TerminationTimeDocument.Factory.newInstance();
- termTime.setNilTerminationTime();
-
-
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param time DOCUMENT_ME
- */
- public void setTerminationTime( java.util.Calendar time )
- {
- org.apache.ws.resource.properties.XmlBeansResourcePropertyUtils.setDateTimePropertyValue( (org.apache.ws.resource.properties.impl.XmlBeansResourceProperty) getResourcePropertySet().get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_TERMINATION_TIME ),
- time );
- }
-
- /**
- * Returns the current time from the prop set.
- *
- * @return java.util.Calendar
- */
- public java.util.Calendar getCurrentTime()
- {
- return org.apache.ws.resource.properties.XmlBeansResourcePropertyUtils.getDateTimePropertyValue( (org.apache.ws.resource.properties.impl.XmlBeansResourceProperty) m_propSet.get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_CURRENT_TIME ) );
- }
-
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public java.util.Calendar getTerminationTime()
- {
- return org.apache.ws.resource.properties.XmlBeansResourcePropertyUtils.getDateTimePropertyValue( (org.apache.ws.resource.properties.impl.XmlBeansResourceProperty) m_propSet.get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_TERMINATION_TIME ) );
- }
- /**
- * @see org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
- */
- public void setResourcePropertySet( org.apache.ws.resource.properties.ResourcePropertySet propSet )
- {
- m_propSet = propSet;
- }
-
- /**
- * @see org.apache.ws.resource.PropertiesResource#getResourcePropertySet()
- */
- public org.apache.ws.resource.properties.ResourcePropertySet getResourcePropertySet()
- {
- return m_propSet;
- }
-}
+public abstract class AbstractJobPortResource
+ implements org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource,
+ org.apache.ws.resource.PropertiesResource
+{
+ /**
+ * The resource ID of the instance.
+ */
+ protected String m_id;
+
+ /**
+ * The set of properties associated with this resource.
+ */
+ protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
+
+ /**
+ * Returns the current time from the prop set.
+ *
+ * @return java.util.Calendar
+ */
+ public java.util.Calendar getCurrentTime( )
+ {
+ return org.apache.ws.resource.properties.XmlBeansResourcePropertyUtils.getDateTimePropertyValue( (org.apache.ws.resource.properties.impl.XmlBeansResourceProperty) m_propSet
+ .get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_CURRENT_TIME ) );
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param id DOCUMENT_ME
+ */
+ public void setID( Object id )
+ {
+ if ( m_id != null )
+ {
+ throw new IllegalStateException( "This resource's ID has already been set." );
+ }
+
+ try
+ {
+ m_id = (String) id;
+ }
+ catch ( ClassCastException cce )
+ {
+ throw new IllegalArgumentException( "Specified ID is not a String." );
+ }
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public Object getID( )
+ {
+ return m_id;
+ }
+
+ /**
+ * @see org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
+ */
+ public void setResourcePropertySet( org.apache.ws.resource.properties.ResourcePropertySet propSet )
+ {
+ m_propSet = propSet;
+ }
+
+ /**
+ * @see org.apache.ws.resource.PropertiesResource#getResourcePropertySet()
+ */
+ public org.apache.ws.resource.properties.ResourcePropertySet getResourcePropertySet( )
+ {
+ return m_propSet;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param time DOCUMENT_ME
+ */
+ public void setTerminationTime( java.util.Calendar time )
+ {
+ org.apache.ws.resource.properties.XmlBeansResourcePropertyUtils.setDateTimePropertyValue( (org.apache.ws.resource.properties.impl.XmlBeansResourceProperty) getResourcePropertySet( )
+ .get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_TERMINATION_TIME ),
+ time );
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public java.util.Calendar getTerminationTime( )
+ {
+ return org.apache.ws.resource.properties.XmlBeansResourcePropertyUtils.getDateTimePropertyValue( (org.apache.ws.resource.properties.impl.XmlBeansResourceProperty) m_propSet
+ .get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_TERMINATION_TIME ) );
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void destroy( )
+ {
+ return;
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void init( )
+ {
+ org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument propsDoc =
+ org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.Factory.newInstance( );
+ m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
+
+ // initialize wsrl:CurrentTime property
+ org.apache.ws.resource.properties.ResourceProperty prop =
+ m_propSet.get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_CURRENT_TIME );
+ org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.CurrentTimeDocument currTime =
+ org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.CurrentTimeDocument.Factory.newInstance( );
+ currTime.setCurrentTime( java.util.Calendar.getInstance( ) );
+ prop.add( currTime );
+ prop.setCallback( new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback( ) );
+
+ // initialize wsrl:TerminationTime property
+ prop =
+ m_propSet.get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_TERMINATION_TIME );
+ org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.TerminationTimeDocument termTime =
+ org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.TerminationTimeDocument.Factory
+ .newInstance( );
+ termTime.setNilTerminationTime( );
+ }
+}
\ No newline at end of file
Modified: incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortService.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortService.java?view=diff&r1=155338&r2=155339
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortService.java (original)
+++ incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortService.java Fri Feb 25 08:09:44 2005
@@ -1,10 +1,23 @@
-
+/*=============================================================================*
+ * Copyright 2004 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.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.handler.SoapMethodNameMap;
-import org.apache.ws.resource.handler.WsrfService;
import org.apache.ws.resource.handler.ServiceSoapMethodNameMap;
+import org.apache.ws.resource.handler.SoapMethodNameMap;
import javax.xml.namespace.QName;
/**
@@ -14,9 +27,16 @@
* NOTE: This class is generated and is NOT meant to be modified.
*/
public abstract class AbstractJobPortService
- implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ImmediateResourceTerminationPortType, org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.GetResourcePropertyPortType {
+ implements org.apache.ws.resource.handler.WsrfService,
+ org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ImmediateResourceTerminationPortType,
+ org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType,
+ org.apache.ws.resource.properties.v1_2_draft05.porttype.GetResourcePropertyPortType
+{
+ /** DOCUMENT_ME */
+ public static final String TARGET_NSURI =
+ "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl";
- public static final String TARGET_NSURI = "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl";
+ /** DOCUMENT_ME */
public static final String TARGET_NSPREFIX = "wsrf-Interop-2.0-draft-03.wsdl";
/**
@@ -62,27 +82,6 @@
{
return m_methodNameMap;
}
-
- /**
- * DOCUMENT_ME
- */
- public void init( )
- {
- m_methodNameMap = new ServiceSoapMethodNameMap( getResourceContext( ) );
- m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd}Send_DocumentRequest") , "Send_Document" );
- m_isInitialized = true;
- }
-
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- protected final boolean isInitialized( )
- {
- return m_isInitialized;
- }
/**
* DOCUMENT_ME
@@ -91,10 +90,12 @@
*
* @return DOCUMENT_ME
*/
- public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.DestroyResponseDocument destroy( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.DestroyDocument requestDoc )
+ public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyResponseDocument getResourceProperty( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocument requestDoc )
{
- return new org.apache.ws.resource.lifetime.v1_2_draft04.porttype.impl.ImmediateResourceTerminationPortTypeImpl( getResourceContext( ) ).destroy( requestDoc );
+ return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.GetResourcePropertyPortTypeImpl( getResourceContext( ) )
+ .getResourceProperty( requestDoc );
}
+
/**
* DOCUMENT_ME
*
@@ -104,8 +105,10 @@
*/
public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.SetTerminationTimeResponseDocument setTerminationTime( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.SetTerminationTimeDocument requestDoc )
{
- return new org.apache.ws.resource.lifetime.v1_2_draft04.porttype.impl.ScheduledResourceTerminationPortTypeImpl( getResourceContext( ) ).setTerminationTime( requestDoc );
+ return new org.apache.ws.resource.lifetime.v1_2_draft04.porttype.impl.ScheduledResourceTerminationPortTypeImpl( getResourceContext( ) )
+ .setTerminationTime( requestDoc );
}
+
/**
* DOCUMENT_ME
*
@@ -113,9 +116,30 @@
*
* @return DOCUMENT_ME
*/
- public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyResponseDocument getResourceProperty( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocument requestDoc )
+ public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.DestroyResponseDocument destroy( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.DestroyDocument requestDoc )
+ {
+ return new org.apache.ws.resource.lifetime.v1_2_draft04.porttype.impl.ImmediateResourceTerminationPortTypeImpl( getResourceContext( ) )
+ .destroy( requestDoc );
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void init( )
{
- return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.GetResourcePropertyPortTypeImpl( getResourceContext( ) ).getResourceProperty( requestDoc );
+ m_methodNameMap = new ServiceSoapMethodNameMap( getResourceContext( ) );
+ m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf( "{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd}Send_DocumentRequest" ),
+ "Send_Document" );
+ m_isInitialized = true;
}
-}
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ protected final boolean isInitialized( )
+ {
+ return m_isInitialized;
+ }
+}
\ No newline at end of file
Modified: incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryResource.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryResource.java?view=diff&r1=155338&r2=155339
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryResource.java (original)
+++ incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryResource.java Fri Feb 25 08:09:44 2005
@@ -1,62 +1,78 @@
-
+/*=============================================================================*
+ * Copyright 2004 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.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
/**
* An abstract PrinterFactory WS-Resource.
* <p/>
- * NOTE: This class is generated and is NOT meant to be modified.
+ * NOTE: This class is generated and is NOT meant to be modified.
*/
-public abstract class AbstractPrinterFactoryResource implements org.apache.ws.resource.Resource {
-
- /**
- * The resource ID of the instance.
- */
- protected String m_id;
-
-
- /**
- * DOCUMENT_ME
- *
- * @param id DOCUMENT_ME
- */
- public void setID( Object id )
- {
- if ( m_id != null )
- {
- throw new IllegalStateException( "This resource's ID has already been set." );
- }
-
- try
- {
- m_id = (String) id;
- }
- catch ( ClassCastException cce )
- {
- throw new IllegalArgumentException( "Specified ID is not a String." );
- }
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public Object getID()
- {
- return m_id;
- }
-
- public void destroy()
- {
- return;
- }
-
- public void init()
- {
-
-
-
- }
-
-
-}
+public abstract class AbstractPrinterFactoryResource
+ implements org.apache.ws.resource.Resource
+{
+ /**
+ * The resource ID of the instance.
+ */
+ protected String m_id;
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param id DOCUMENT_ME
+ */
+ public void setID( Object id )
+ {
+ if ( m_id != null )
+ {
+ throw new IllegalStateException( "This resource's ID has already been set." );
+ }
+
+ try
+ {
+ m_id = (String) id;
+ }
+ catch ( ClassCastException cce )
+ {
+ throw new IllegalArgumentException( "Specified ID is not a String." );
+ }
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public Object getID( )
+ {
+ return m_id;
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void destroy( )
+ {
+ return;
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void init( )
+ {
+ }
+}
\ No newline at end of file
Modified: incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryService.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryService.java?view=diff&r1=155338&r2=155339
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryService.java (original)
+++ incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryService.java Fri Feb 25 08:09:44 2005
@@ -1,10 +1,23 @@
-
+/*=============================================================================*
+ * Copyright 2004 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.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.handler.SoapMethodNameMap;
-import org.apache.ws.resource.handler.WsrfService;
import org.apache.ws.resource.handler.ServiceSoapMethodNameMap;
+import org.apache.ws.resource.handler.SoapMethodNameMap;
import javax.xml.namespace.QName;
/**
@@ -14,9 +27,13 @@
* NOTE: This class is generated and is NOT meant to be modified.
*/
public abstract class AbstractPrinterFactoryService
- implements org.apache.ws.resource.handler.WsrfService {
+ implements org.apache.ws.resource.handler.WsrfService
+{
+ /** DOCUMENT_ME */
+ public static final String TARGET_NSURI =
+ "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl";
- public static final String TARGET_NSURI = "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl";
+ /** DOCUMENT_ME */
public static final String TARGET_NSPREFIX = "wsrf-Interop-2.0-draft-03.wsdl";
/**
@@ -62,27 +79,25 @@
{
return m_methodNameMap;
}
-
- /**
- * DOCUMENT_ME
- */
+
+ /**
+ * DOCUMENT_ME
+ */
public void init( )
{
- m_methodNameMap = new ServiceSoapMethodNameMap( getResourceContext( ) );
- m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd}CreatePrinterRequest") , "CreatePrinter" );
- m_isInitialized = true;
+ m_methodNameMap = new ServiceSoapMethodNameMap( getResourceContext( ) );
+ m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf( "{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd}CreatePrinterRequest" ),
+ "CreatePrinter" );
+ m_isInitialized = true;
}
-
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
protected final boolean isInitialized( )
{
- return m_isInitialized;
+ return m_isInitialized;
}
-
-
-}
+}
\ No newline at end of file
Modified: incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortResource.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortResource.java?view=diff&r1=155338&r2=155339
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortResource.java (original)
+++ incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortResource.java Fri Feb 25 08:09:44 2005
@@ -1,84 +1,112 @@
-
+/*=============================================================================*
+ * Copyright 2004 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.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
/**
* An abstract PrinterPort WS-Resource.
* <p/>
- * NOTE: This class is generated and is NOT meant to be modified.
+ * NOTE: This class is generated and is NOT meant to be modified.
*/
-public abstract class AbstractPrinterPortResource implements org.apache.ws.resource.PropertiesResource {
-
- /**
- * The resource ID of the instance.
- */
- protected String m_id;
-
- /**
- * The set of properties associated with this resource.
- */
- protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
-
- /**
- * DOCUMENT_ME
- *
- * @param id DOCUMENT_ME
- */
- public void setID( Object id )
- {
- if ( m_id != null )
- {
- throw new IllegalStateException( "This resource's ID has already been set." );
- }
-
- try
- {
- m_id = (String) id;
- }
- catch ( ClassCastException cce )
- {
- throw new IllegalArgumentException( "Specified ID is not a String." );
- }
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public Object getID()
- {
- return m_id;
- }
-
- public void destroy()
- {
- return;
- }
-
- public void init()
- {
- org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterPropertiesDocument propsDoc = org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterPropertiesDocument.Factory.newInstance();
- m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
- // initialize wsrp:QueryExpressionDialect property
- org.apache.ws.resource.properties.ResourceProperty queryProp = m_propSet.get( org.apache.ws.resource.properties.v1_2_draft05.porttype.QueryResourcePropertiesPortType.PROP_QNAME_QUERY_EXPRESSION_DIALECT );
- org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryExpressionDialectDocument queryExpressionDialectDocument = org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryExpressionDialectDocument.Factory.newInstance();
- queryExpressionDialectDocument.setQueryExpressionDialect(org.apache.ws.resource.properties.query.QueryConstants.DIALECT_URI__XPATH1_0.toString());
- queryProp.add( queryExpressionDialectDocument );
- }
-
- /**
- * @see org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
- */
- public void setResourcePropertySet( org.apache.ws.resource.properties.ResourcePropertySet propSet )
- {
- m_propSet = propSet;
- }
-
- /**
- * @see org.apache.ws.resource.PropertiesResource#getResourcePropertySet()
- */
- public org.apache.ws.resource.properties.ResourcePropertySet getResourcePropertySet()
- {
- return m_propSet;
- }
-}
+public abstract class AbstractPrinterPortResource
+ implements org.apache.ws.resource.PropertiesResource
+{
+ /**
+ * The resource ID of the instance.
+ */
+ protected String m_id;
+
+ /**
+ * The set of properties associated with this resource.
+ */
+ protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param id DOCUMENT_ME
+ */
+ public void setID( Object id )
+ {
+ if ( m_id != null )
+ {
+ throw new IllegalStateException( "This resource's ID has already been set." );
+ }
+
+ try
+ {
+ m_id = (String) id;
+ }
+ catch ( ClassCastException cce )
+ {
+ throw new IllegalArgumentException( "Specified ID is not a String." );
+ }
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public Object getID( )
+ {
+ return m_id;
+ }
+
+ /**
+ * @see org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
+ */
+ public void setResourcePropertySet( org.apache.ws.resource.properties.ResourcePropertySet propSet )
+ {
+ m_propSet = propSet;
+ }
+
+ /**
+ * @see org.apache.ws.resource.PropertiesResource#getResourcePropertySet()
+ */
+ public org.apache.ws.resource.properties.ResourcePropertySet getResourcePropertySet( )
+ {
+ return m_propSet;
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void destroy( )
+ {
+ return;
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void init( )
+ {
+ org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterPropertiesDocument propsDoc =
+ org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterPropertiesDocument.Factory.newInstance( );
+ m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
+
+ // initialize wsrp:QueryExpressionDialect property
+ org.apache.ws.resource.properties.ResourceProperty queryProp =
+ m_propSet.get( org.apache.ws.resource.properties.v1_2_draft05.porttype.QueryResourcePropertiesPortType.PROP_QNAME_QUERY_EXPRESSION_DIALECT );
+ org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryExpressionDialectDocument queryExpressionDialectDocument =
+ org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryExpressionDialectDocument.Factory
+ .newInstance( );
+ queryExpressionDialectDocument.setQueryExpressionDialect( org.apache.ws.resource.properties.query.QueryConstants.DIALECT_URI__XPATH1_0
+ .toString( ) );
+ queryProp.add( queryExpressionDialectDocument );
+ }
+}
\ No newline at end of file
Modified: incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortService.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortService.java?view=diff&r1=155338&r2=155339
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortService.java (original)
+++ incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortService.java Fri Feb 25 08:09:44 2005
@@ -1,10 +1,23 @@
-
+/*=============================================================================*
+ * Copyright 2004 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.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.handler.SoapMethodNameMap;
-import org.apache.ws.resource.handler.WsrfService;
import org.apache.ws.resource.handler.ServiceSoapMethodNameMap;
+import org.apache.ws.resource.handler.SoapMethodNameMap;
import javax.xml.namespace.QName;
/**
@@ -14,9 +27,21 @@
* NOTE: This class is generated and is NOT meant to be modified.
*/
public abstract class AbstractPrinterPortService
- implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v1_2_draft05.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.SetResourcePropertiesPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.UpdateResourcePropertiesPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.InsertResourcePropertiesPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.GetResourcePropertyDocumentPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.GetResourcePropertyPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.QueryResourcePropertiesPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.DeleteResourcePropertiesPortType {
+ implements org.apache.ws.resource.handler.WsrfService,
+ org.apache.ws.resource.properties.v1_2_draft05.porttype.GetMultipleResourcePropertiesPortType,
+ org.apache.ws.resource.properties.v1_2_draft05.porttype.SetResourcePropertiesPortType,
+ org.apache.ws.resource.properties.v1_2_draft05.porttype.UpdateResourcePropertiesPortType,
+ org.apache.ws.resource.properties.v1_2_draft05.porttype.InsertResourcePropertiesPortType,
+ org.apache.ws.resource.properties.v1_2_draft05.porttype.GetResourcePropertyDocumentPortType,
+ org.apache.ws.resource.properties.v1_2_draft05.porttype.GetResourcePropertyPortType,
+ org.apache.ws.resource.properties.v1_2_draft05.porttype.QueryResourcePropertiesPortType,
+ org.apache.ws.resource.properties.v1_2_draft05.porttype.DeleteResourcePropertiesPortType
+{
+ /** DOCUMENT_ME */
+ public static final String TARGET_NSURI =
+ "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl";
- public static final String TARGET_NSURI = "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl";
+ /** DOCUMENT_ME */
public static final String TARGET_NSPREFIX = "wsrf-Interop-2.0-draft-03.wsdl";
/**
@@ -62,28 +87,6 @@
{
return m_methodNameMap;
}
-
- /**
- * DOCUMENT_ME
- */
- public void init( )
- {
- m_methodNameMap = new ServiceSoapMethodNameMap( getResourceContext( ) );
- m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd}Create_JobRequest") , "Create_Job" );
- m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd}Print_JobRequest") , "Print_Job" );
- m_isInitialized = true;
- }
-
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- protected final boolean isInitialized( )
- {
- return m_isInitialized;
- }
/**
* DOCUMENT_ME
@@ -94,7 +97,8 @@
*/
public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesDocument requestDoc )
{
- return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl( getResourceContext( ) ).getMultipleResourceProperties( requestDoc );
+ return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl( getResourceContext( ) )
+ .getMultipleResourceProperties( requestDoc );
}
/**
@@ -106,7 +110,8 @@
*/
public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesResponseDocument setResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesDocument requestDoc )
{
- return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.SetResourcePropertiesPortTypeImpl( getResourceContext( ) ).setResourceProperties( requestDoc );
+ return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.SetResourcePropertiesPortTypeImpl( getResourceContext( ) )
+ .setResourceProperties( requestDoc );
}
/**
@@ -116,9 +121,10 @@
*
* @return DOCUMENT_ME
*/
- public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesResponseDocument updateResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesDocument requestDoc )
+ public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyResponseDocument getResourceProperty( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocument requestDoc )
{
- return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.UpdateResourcePropertiesPortTypeImpl( getResourceContext( ) ).updateResourceProperties( requestDoc );
+ return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.GetResourcePropertyPortTypeImpl( getResourceContext( ) )
+ .getResourceProperty( requestDoc );
}
/**
@@ -128,9 +134,10 @@
*
* @return DOCUMENT_ME
*/
- public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesResponseDocument insertResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesDocument requestDoc )
+ public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentResponseDocument getResourcePropertyDocument( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentDocument1 requestDoc )
{
- return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.InsertResourcePropertiesPortTypeImpl( getResourceContext( ) ).insertResourceProperties( requestDoc );
+ return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.GetResourcePropertyDocumentPortTypeImpl( getResourceContext( ) )
+ .getResourcePropertyDocument( requestDoc );
}
/**
@@ -140,9 +147,23 @@
*
* @return DOCUMENT_ME
*/
- public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentResponseDocument getResourcePropertyDocument( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentDocument1 requestDoc )
+ public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesResponseDocument deleteResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesDocument requestDoc )
{
- return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.GetResourcePropertyDocumentPortTypeImpl( getResourceContext( ) ).getResourcePropertyDocument( requestDoc );
+ return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.DeleteResourcePropertiesPortTypeImpl( getResourceContext( ) )
+ .deleteResourceProperties( requestDoc );
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void init( )
+ {
+ m_methodNameMap = new ServiceSoapMethodNameMap( getResourceContext( ) );
+ m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf( "{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd}Create_JobRequest" ),
+ "Create_Job" );
+ m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf( "{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd}Print_JobRequest" ),
+ "Print_Job" );
+ m_isInitialized = true;
}
/**
@@ -152,10 +173,12 @@
*
* @return DOCUMENT_ME
*/
- public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyResponseDocument getResourceProperty( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocument requestDoc )
+ public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesResponseDocument insertResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesDocument requestDoc )
{
- return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.GetResourcePropertyPortTypeImpl( getResourceContext( ) ).getResourceProperty( requestDoc );
+ return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.InsertResourcePropertiesPortTypeImpl( getResourceContext( ) )
+ .insertResourceProperties( requestDoc );
}
+
/**
* DOCUMENT_ME
*
@@ -165,8 +188,10 @@
*/
public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesResponseDocument queryResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesDocument requestDoc )
{
- return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.QueryResourcePropertiesPortTypeImpl( getResourceContext( ) ).queryResourceProperties( requestDoc );
+ return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.QueryResourcePropertiesPortTypeImpl( getResourceContext( ) )
+ .queryResourceProperties( requestDoc );
}
+
/**
* DOCUMENT_ME
*
@@ -174,10 +199,19 @@
*
* @return DOCUMENT_ME
*/
- public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesResponseDocument deleteResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesDocument requestDoc )
+ public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesResponseDocument updateResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesDocument requestDoc )
{
- return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.DeleteResourcePropertiesPortTypeImpl( getResourceContext( ) ).deleteResourceProperties( requestDoc );
+ return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.UpdateResourcePropertiesPortTypeImpl( getResourceContext( ) )
+ .updateResourceProperties( requestDoc );
}
-
-}
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ protected final boolean isInitialized( )
+ {
+ return m_isInitialized;
+ }
+}
\ No newline at end of file
Modified: incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortCustomOperationsPortType.java?view=diff&r1=155338&r2=155339
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortCustomOperationsPortType.java (original)
+++ incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortCustomOperationsPortType.java Fri Feb 25 08:09:44 2005
@@ -1,6 +1,21 @@
-
+/*=============================================================================*
+ * Copyright 2004 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.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
/**
* Custom operations portType.
*
@@ -9,7 +24,12 @@
*/
public interface JobPortCustomOperationsPortType
{
-
- public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreationResponseDocument Send_Document( org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.SendDocumentRequestDocument requestDoc ) ;
-
-}
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreationResponseDocument Send_Document( org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.SendDocumentRequestDocument requestDoc );
+}
\ No newline at end of file
Modified: incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortHome.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortHome.java?view=diff&r1=155338&r2=155339
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortHome.java (original)
+++ incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortHome.java Fri Feb 25 08:09:44 2005
@@ -1,12 +1,21 @@
+/*=============================================================================*
+ * Copyright 2004 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.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
-import org.apache.ws.resource.JndiConstants;
-import org.apache.ws.resource.Resource;
-import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.ResourceContextException;
-import org.apache.ws.resource.ResourceException;
-import org.apache.ws.resource.ResourceKey;
-import org.apache.ws.resource.ResourceUnknownException;
+import org.apache.ws.resource.*;
import org.apache.ws.resource.impl.AbstractResourceHome;
import org.apache.ws.resource.impl.SimpleTypeResourceKey;
import org.apache.ws.resource.properties.faults.ResourceUnknownFaultException;
@@ -14,87 +23,134 @@
import org.apache.ws.util.XmlBeanUtils;
import org.apache.xmlbeans.XmlObject;
import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypeType;
-import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
-import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceDocument;
import org.xmlsoap.schemas.ws.x2004.x08.addressing.AttributedURI;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceDocument;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
import org.xmlsoap.schemas.ws.x2004.x08.addressing.ReferencePropertiesType;
-
import javax.xml.namespace.QName;
import java.io.Serializable;
-import java.net.URL;
/**
* Home for JobPort WS-Resources.
*/
public class JobPortHome
- extends AbstractResourceHome
- implements Serializable
+ extends AbstractResourceHome
+ implements Serializable
{
- private static final String SERVICE_NAME = "JobPort";
- public static final String HOME_LOCATION = JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME + "/" + JndiConstants.ATOMIC_NAME_HOME;
+ private static final String SERVICE_NAME = "JobPort";
- private long m_jobId = 0;
- /**
- * @param resourceContext DOCUMENT_ME
- * @return DOCUMENT_ME
- * @throws ResourceException DOCUMENT_ME
- * @throws ResourceContextException DOCUMENT_ME
- * @throws ResourceUnknownException DOCUMENT_ME
- */
- public Resource getInstance(ResourceContext resourceContext)
- throws ResourceException,
- ResourceContextException,
- ResourceUnknownException
- {
- ResourceKey key = resourceContext.getResourceKey();
- Resource resource = null;
- try
- {
- resource = find(key);
- }
- catch (ResourceException re)
- {
- throw new ResourceUnknownFaultException(new NamespaceVersionHolderImpl(), new ResourceUnknownException(null, "An error occurred"));
- }
- return resource;
- }
-
- public JobPortResource createJob(ResourceContext resourceContext, String jobName, String origUserName, MimeMediaTypeType.Enum documentFormat, byte[] base64Data, EndpointReferenceType epr)
- {
- ++ m_jobId; //todo generate a job id.....counter?
- SimpleTypeResourceKey key = new SimpleTypeResourceKey(QName.valueOf("{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl}ResourceID"), Long.toString(m_jobId));
- EndpointReferenceType jobEpr = getEprForResource(key,resourceContext.getBaseURL());
- JobPortResource job = new JobPortResource(jobEpr,m_jobId, jobName, origUserName, epr);
- job.init();
- add(key, job);
- return job;
- }
-
-
- public JobPortResource createJob(ResourceContext resourceContext, String jobName, EndpointReferenceType epr)
- {
- ++m_jobId;
- SimpleTypeResourceKey key = new SimpleTypeResourceKey(QName.valueOf("{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl}ResourceID"), "Job" + Integer.toString((int)m_jobId));
- EndpointReferenceType jobEpr = getEprForResource(key,resourceContext.getBaseURL());
- JobPortResource job = new JobPortResource(jobEpr,m_jobId, jobName, epr);
- job.init();
- add(key, job);
- return job;
- }
-
-
- public EndpointReferenceType getEprForResource(ResourceKey key, String serviceUrl)
- {
- EndpointReferenceDocument eprDoc = EndpointReferenceDocument.Factory.newInstance();
- EndpointReferenceType epr = eprDoc.addNewEndpointReference();
- AttributedURI address = epr.addNewAddress();
- address.setStringValue( serviceUrl + SERVICE_NAME );
- // TODO: set portType and serviceName! (read from config file)
- ReferencePropertiesType refProps = epr.addNewReferenceProperties();
-
- XmlObject xmlObject = XmlBeanUtils.addChildElement( refProps, key.getName() );
- XmlBeanUtils.setValue(xmlObject,key.getValue().toString() );
-
- return epr;
- }
-}
+ /** DOCUMENT_ME */
+ public static final String HOME_LOCATION =
+ JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME + "/" + JndiConstants.ATOMIC_NAME_HOME;
+ private long m_jobId = 0;
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param key DOCUMENT_ME
+ * @param serviceUrl DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public EndpointReferenceType getEprForResource( ResourceKey key,
+ String serviceUrl )
+ {
+ EndpointReferenceDocument eprDoc = EndpointReferenceDocument.Factory.newInstance( );
+ EndpointReferenceType epr = eprDoc.addNewEndpointReference( );
+ AttributedURI address = epr.addNewAddress( );
+ address.setStringValue( serviceUrl + SERVICE_NAME );
+
+ // TODO: set portType and serviceName! (read from config file)
+ ReferencePropertiesType refProps = epr.addNewReferenceProperties( );
+
+ XmlObject xmlObject = XmlBeanUtils.addChildElement( refProps,
+ key.getName( ) );
+ XmlBeanUtils.setValue( xmlObject,
+ key.getValue( ).toString( ) );
+
+ return epr;
+ }
+
+ /**
+ * @param resourceContext DOCUMENT_ME
+ * @return DOCUMENT_ME
+ * @throws ResourceException DOCUMENT_ME
+ * @throws ResourceContextException DOCUMENT_ME
+ * @throws ResourceUnknownException DOCUMENT_ME
+ */
+ public Resource getInstance( ResourceContext resourceContext )
+ throws ResourceException,
+ ResourceContextException,
+ ResourceUnknownException
+ {
+ ResourceKey key = resourceContext.getResourceKey( );
+ Resource resource = null;
+ try
+ {
+ resource = find( key );
+ }
+ catch ( ResourceException re )
+ {
+ throw new ResourceUnknownFaultException( new NamespaceVersionHolderImpl( ),
+ new ResourceUnknownException( null, "An error occurred" ) );
+ }
+
+ return resource;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param resourceContext DOCUMENT_ME
+ * @param jobName DOCUMENT_ME
+ * @param origUserName DOCUMENT_ME
+ * @param documentFormat DOCUMENT_ME
+ * @param base64Data DOCUMENT_ME
+ * @param epr DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public JobPortResource createJob( ResourceContext resourceContext,
+ String jobName,
+ String origUserName,
+ MimeMediaTypeType.Enum documentFormat,
+ byte[] base64Data,
+ EndpointReferenceType epr )
+ {
+ ++m_jobId; //todo generate a job id.....counter?
+ SimpleTypeResourceKey key =
+ new SimpleTypeResourceKey( QName.valueOf( "{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl}ResourceID" ),
+ Long.toString( m_jobId ) );
+ EndpointReferenceType jobEpr = getEprForResource( key,
+ resourceContext.getBaseURL( ) );
+ JobPortResource job = new JobPortResource( jobEpr, m_jobId, jobName, origUserName, epr );
+ job.init( );
+ add( key, job );
+ return job;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param resourceContext DOCUMENT_ME
+ * @param jobName DOCUMENT_ME
+ * @param epr DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public JobPortResource createJob( ResourceContext resourceContext,
+ String jobName,
+ EndpointReferenceType epr )
+ {
+ ++m_jobId;
+ SimpleTypeResourceKey key =
+ new SimpleTypeResourceKey( QName.valueOf( "{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl}ResourceID" ),
+ "Job" + Integer.toString( (int) m_jobId ) );
+ EndpointReferenceType jobEpr = getEprForResource( key,
+ resourceContext.getBaseURL( ) );
+ JobPortResource job = new JobPortResource( jobEpr, m_jobId, jobName, epr );
+ job.init( );
+ add( key, job );
+ return job;
+ }
+}
\ No newline at end of file
Modified: incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortPropertyQNames.java?view=diff&r1=155338&r2=155339
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortPropertyQNames.java (original)
+++ incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortPropertyQNames.java Fri Feb 25 08:09:44 2005
@@ -1,3 +1,18 @@
+/*=============================================================================*
+ * Copyright 2004 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.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
import javax.xml.namespace.QName;
@@ -10,22 +25,36 @@
*/
public interface JobPortPropertyQNames
{
-
- QName JOB_NAME =
- new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_name", "wsrf-pr");
- QName TERMINATIONTIME =
- new QName( "", "TerminationTime", "wsrf-rl");
- QName JOB_REFERENCE =
- new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_reference", "wsrf-pr");
- QName JOB_ORIGINATING_USER_NAME =
- new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_originating_user_name", "wsrf-pr");
- QName JOB_STATE =
- new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_state", "wsrf-pr");
- QName JOB_ID =
- new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_id", "wsrf-pr");
- QName CURRENTTIME =
- new QName( "", "CurrentTime", "wsrf-rl");
- QName JOB_PRINTER_REFERENCE =
- new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_printer_reference", "wsrf-pr");
-
-}
+ /** DOCUMENT_ME */
+ QName JOB_NAME =
+ new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_name", "wsrf-pr" );
+
+ /** DOCUMENT_ME */
+ QName TERMINATIONTIME = new QName( "", "TerminationTime", "wsrf-rl" );
+
+ /** DOCUMENT_ME */
+ QName JOB_REFERENCE =
+ new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_reference",
+ "wsrf-pr" );
+
+ /** DOCUMENT_ME */
+ QName JOB_ORIGINATING_USER_NAME =
+ new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd",
+ "job_originating_user_name", "wsrf-pr" );
+
+ /** DOCUMENT_ME */
+ QName JOB_STATE =
+ new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_state", "wsrf-pr" );
+
+ /** DOCUMENT_ME */
+ QName JOB_ID =
+ new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_id", "wsrf-pr" );
+
+ /** DOCUMENT_ME */
+ QName CURRENTTIME = new QName( "", "CurrentTime", "wsrf-rl" );
+
+ /** DOCUMENT_ME */
+ QName JOB_PRINTER_REFERENCE =
+ new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_printer_reference",
+ "wsrf-pr" );
+}
\ No newline at end of file
Modified: incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortResource.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortResource.java?view=diff&r1=155338&r2=155339
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortResource.java (original)
+++ incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortResource.java Fri Feb 25 08:09:44 2005
@@ -1,16 +1,23 @@
-
+/*=============================================================================*
+ * Copyright 2004 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.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
import org.apache.ws.resource.properties.ResourceProperty;
-import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobIdDocument;
-import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobNameDocument;
-import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobOriginatingUserNameDocument;
-import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPrinterReferenceDocument;
-import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobReferenceDocument;
-import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobStateDocument;
-import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobStateType;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.*;
import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
-
import java.math.BigInteger;
import java.util.Calendar;
@@ -19,80 +26,107 @@
* <p/>
* NOTE: This class is generated but IS meant to be modified.
*/
-public class JobPortResource extends AbstractJobPortResource
+public class JobPortResource
+ extends AbstractJobPortResource
{
- private String m_jobName;
- private long m_jobId;
- private String m_origUserName;
- private EndpointReferenceType m_jobRef;
- private EndpointReferenceType m_printerRef;
-
- public JobPortResource(EndpointReferenceType jobEpr, long jobId, String jobName, String origUserName, EndpointReferenceType printerRef)
- {
- super();
- m_jobName = jobName;
- m_jobId = jobId;
- m_origUserName = origUserName;
- m_jobRef = jobEpr;
- m_printerRef = printerRef;
- }
-
- public JobPortResource(EndpointReferenceType jobEpr, long jobId, String jobName, EndpointReferenceType epr)
- {
- super();
- m_jobId = jobId;
- m_jobName = jobName;
- m_jobRef = jobEpr;
- m_printerRef = epr;
- }
-
- /**
- * Initializes this resource's state (properties, etc.).
- */
- public void init()
- {
- super.init();
-
- ResourceProperty resourceProperty = m_propSet.get(JobPortPropertyQNames.JOB_NAME);
- JobNameDocument jobNameDocument = JobNameDocument.Factory.newInstance();
- jobNameDocument.setJobName(m_jobName);
- resourceProperty.add(jobNameDocument);
-
- resourceProperty = m_propSet.get(JobPortPropertyQNames.JOB_ID);
- JobIdDocument jobIdDocument = JobIdDocument.Factory.newInstance();
- jobIdDocument.setJobId(BigInteger.valueOf(m_jobId));
- resourceProperty.add(jobIdDocument);
-
- resourceProperty = m_propSet.get(JobPortPropertyQNames.JOB_ORIGINATING_USER_NAME);
- JobOriginatingUserNameDocument jobOriginatingUserNameDocument = JobOriginatingUserNameDocument.Factory.newInstance();
- jobOriginatingUserNameDocument.setJobOriginatingUserName(m_origUserName);
- resourceProperty.add(jobOriginatingUserNameDocument);
-
- resourceProperty = m_propSet.get(JobPortPropertyQNames.JOB_PRINTER_REFERENCE);
- JobPrinterReferenceDocument jobPrinterReferenceDocument = JobPrinterReferenceDocument.Factory.newInstance();
- jobPrinterReferenceDocument.setJobPrinterReference(m_printerRef);
- resourceProperty.add(jobPrinterReferenceDocument);
-
- resourceProperty = m_propSet.get(JobPortPropertyQNames.JOB_REFERENCE);
- JobReferenceDocument jobReferenceDocument = JobReferenceDocument.Factory.newInstance();
- jobReferenceDocument.setJobReference(getEpr());
- resourceProperty.add(jobReferenceDocument);
-
- resourceProperty = m_propSet.get(JobPortPropertyQNames.JOB_STATE);
- JobStateDocument jobStateDocument = JobStateDocument.Factory.newInstance();
- jobStateDocument.setJobState(JobStateType.PENDING);
- resourceProperty.add(jobStateDocument);
-
- Calendar currentTime = getCurrentTime();
- Calendar termTime = Calendar.getInstance();
- termTime.set(currentTime.get(Calendar.YEAR),currentTime.get(Calendar.MONTH), currentTime.get(Calendar.DATE) + 2 );
- setTerminationTime(termTime);
-
- }
-
- private EndpointReferenceType getEpr()
- {
- return m_jobRef;
- }
-
-}
+ private String m_jobName;
+ private long m_jobId;
+ private String m_origUserName;
+ private EndpointReferenceType m_jobRef;
+ private EndpointReferenceType m_printerRef;
+
+ /**
+ * Creates a new {@link JobPortResource} object.
+ *
+ * @param jobEpr DOCUMENT_ME
+ * @param jobId DOCUMENT_ME
+ * @param jobName DOCUMENT_ME
+ * @param origUserName DOCUMENT_ME
+ * @param printerRef DOCUMENT_ME
+ */
+ public JobPortResource( EndpointReferenceType jobEpr,
+ long jobId,
+ String jobName,
+ String origUserName,
+ EndpointReferenceType printerRef )
+ {
+ super( );
+ m_jobName = jobName;
+ m_jobId = jobId;
+ m_origUserName = origUserName;
+ m_jobRef = jobEpr;
+ m_printerRef = printerRef;
+ }
+
+ /**
+ * Creates a new {@link JobPortResource} object.
+ *
+ * @param jobEpr DOCUMENT_ME
+ * @param jobId DOCUMENT_ME
+ * @param jobName DOCUMENT_ME
+ * @param epr DOCUMENT_ME
+ */
+ public JobPortResource( EndpointReferenceType jobEpr,
+ long jobId,
+ String jobName,
+ EndpointReferenceType epr )
+ {
+ super( );
+ m_jobId = jobId;
+ m_jobName = jobName;
+ m_jobRef = jobEpr;
+ m_printerRef = epr;
+ }
+
+ /**
+ * Initializes this resource's state (properties, etc.).
+ */
+ public void init( )
+ {
+ super.init( );
+
+ ResourceProperty resourceProperty = m_propSet.get( JobPortPropertyQNames.JOB_NAME );
+ JobNameDocument jobNameDocument = JobNameDocument.Factory.newInstance( );
+ jobNameDocument.setJobName( m_jobName );
+ resourceProperty.add( jobNameDocument );
+
+ resourceProperty = m_propSet.get( JobPortPropertyQNames.JOB_ID );
+ JobIdDocument jobIdDocument = JobIdDocument.Factory.newInstance( );
+ jobIdDocument.setJobId( BigInteger.valueOf( m_jobId ) );
+ resourceProperty.add( jobIdDocument );
+
+ resourceProperty = m_propSet.get( JobPortPropertyQNames.JOB_ORIGINATING_USER_NAME );
+ JobOriginatingUserNameDocument jobOriginatingUserNameDocument =
+ JobOriginatingUserNameDocument.Factory.newInstance( );
+ jobOriginatingUserNameDocument.setJobOriginatingUserName( m_origUserName );
+ resourceProperty.add( jobOriginatingUserNameDocument );
+
+ resourceProperty = m_propSet.get( JobPortPropertyQNames.JOB_PRINTER_REFERENCE );
+ JobPrinterReferenceDocument jobPrinterReferenceDocument =
+ JobPrinterReferenceDocument.Factory.newInstance( );
+ jobPrinterReferenceDocument.setJobPrinterReference( m_printerRef );
+ resourceProperty.add( jobPrinterReferenceDocument );
+
+ resourceProperty = m_propSet.get( JobPortPropertyQNames.JOB_REFERENCE );
+ JobReferenceDocument jobReferenceDocument = JobReferenceDocument.Factory.newInstance( );
+ jobReferenceDocument.setJobReference( getEpr( ) );
+ resourceProperty.add( jobReferenceDocument );
+
+ resourceProperty = m_propSet.get( JobPortPropertyQNames.JOB_STATE );
+ JobStateDocument jobStateDocument = JobStateDocument.Factory.newInstance( );
+ jobStateDocument.setJobState( JobStateType.PENDING );
+ resourceProperty.add( jobStateDocument );
+
+ Calendar currentTime = getCurrentTime( );
+ Calendar termTime = Calendar.getInstance( );
+ termTime.set( currentTime.get( Calendar.YEAR ),
+ currentTime.get( Calendar.MONTH ),
+ currentTime.get( Calendar.DATE ) + 2 );
+ setTerminationTime( termTime );
+ }
+
+ private EndpointReferenceType getEpr( )
+ {
+ return m_jobRef;
+ }
+}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: apollo-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: apollo-dev-help@ws.apache.org