Package com.ibm.xmlns.stdwip.webServices.wsResourceLifetime

Examples of com.ibm.xmlns.stdwip.webServices.wsResourceLifetime.TerminationTimeDocument


                  // tell the thread pool to run code that examines the current resource and destroys it if it is expired
                  m_reaperThreadPool.execute( new Runnable(  )
                     {
                        public void run(  )
                        {
                           TerminationTimeDocument termTimeXmlBean = null;

                           try
                           {
                              SOAPElement[] soapEle =
                                              resource.getResourceProperty( ResourceLifetime11Constants.RESOURCE_PROP_QNAME_TERMINATION_TIME );

                              termTimeXmlBean = (TerminationTimeDocument) XmlBeansUtils.toXmlObject( soapEle[0] );
                           }
                           catch ( Throwable t )
                           {
                              m_noTerminationTimeSupport.put( resource.getId(  ),
                                                              resource.getId(  ) );
                           }

                           if ( ( termTimeXmlBean != null )
                                && !termTimeXmlBean.isNilTerminationTime(  )
                                && termTimeXmlBean.getTerminationTime(  ).before( Calendar.getInstance(  ) ) )
                           {
                              try
                              {
                                 resource.destroy(  );
                              }
View Full Code Here


         if ( !prop_qname.equals( ResourceLifetime11Constants.RESOURCE_PROP_QNAME_TERMINATION_TIME ) )
         {
            return new SOAPElement[0];
         }

         TerminationTimeDocument termTimeDoc = TerminationTimeDocument.Factory.newInstance(  );
         Calendar                termTimeCal = Calendar.getInstance(  );
         termTimeCal.set( ( m_expired ) ? 1999 : 2100, 1, 1 );
         termTimeDoc.setTerminationTime( termTimeCal );

         return XmlBeansUtils.toSOAPElementArray( new XmlObject[]
                                                  {
                                                     termTimeDoc
                                                  } );
View Full Code Here

TOP

Related Classes of com.ibm.xmlns.stdwip.webServices.wsResourceLifetime.TerminationTimeDocument

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.