Examples of ResourceUnknownException


Examples of org.apache.ws.resource.ResourceUnknownException

      {
         resource = find( key );
      }
      catch ( ResourceException re )
      {
         throw new ResourceUnknownException( key.getValue(  ),
                                             resourceContext.getServiceName(  ) );

         //TODO add any checking for key validity

         /**
 
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

      LOG.debug( MSG.getMessage( Keys.LOADING_RESOURCE_FROM_PERSISTENCE,
                                 String.valueOf( id ) ) );
      ( (PersistentResource) resource ).load(  );
      if ( ResourceSweeper.isExpired( resource ) )
      {
         throw new ResourceUnknownException( getNonNullKey( id ),
                                             getServicePortName(  ) );
      }

      return resource;
   }
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

      Resource resource = (Resource) m_resources.get( getNonNullKey( resourceId ) );
      if ( resource == null )
      {
         if ( !m_resourceIsPersistent )
         {
            throw new ResourceUnknownException( resourceId,
                                                getServicePortName(  ) );
         }

         add( createNewInstanceAndLoad( resourceId ) );
      }
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

         createPrinterResponse.setPrinterReference( (EndpointReferenceType) prop.toXmlObjects(  )[0] );
      }
      catch ( Exception e )
      {
         throw new ResourceUnknownFaultException( new NamespaceVersionHolderImpl(  ),
                                                  new ResourceUnknownException( null,
                                                                                "An error occurred when invoking CreatePrinter" ) );
      }

      return responseDocument;
   }
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

      LOG.debug( MSG.getMessage( Keys.LOADING_RESOURCE_FROM_PERSISTENCE,
                                 String.valueOf( id ) ) );
      ( (PersistentResource) resource ).load(  );
      if ( ResourceSweeper.isExpired( resource ) )
      {
         throw new ResourceUnknownException( getNonNullKey( id ),
                                             getServicePortName(  ) );
      }

      return resource;
   }
View Full Code Here

Examples of org.apache.ws.resource.ResourceUnknownException

      Resource resource = (Resource) m_resources.get( getNonNullKey( resourceId ) );
      if ( resource == null )
      {
         if ( !m_resourceIsPersistent )
         {
            throw new ResourceUnknownException( resourceId,
                                                getServicePortName(  ) );
         }

         add( createNewInstanceAndLoad( resourceId ) );
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.