Package org.apache.ws.resource

Examples of org.apache.ws.resource.Resource


                           CreateParamsType createParams )
   throws ResourceException,
          ResourceContextException,
          ResourceUnknownException
   {
      Resource              resource  = null;
      long                  currentId = ++m_instances;
      Object resourceId = SERVICE_NAME + Long.toString( currentId );

      try
      {
         //resource = createInstance(aKey);
         resource = new HostResource( resourceId, createParams );

         //The EPRs should be build using "http://schemas.xmlsoap.org/ws/2003/03/addressing" addressing namespace. It introduces spec conflicts
         //To work around thes problem the "http://schemas.xmlsoap.org/ws/2004/08/addressing" is used as namespace for addressing
         //EndpointReference epr = getEndpointReference(resourceContext.getBaseURL(  ) + "/" + getServiceName().getLocalPart() , null, SPEC_NAMESPACE_SET.getAddressingNamespace());
         EndpointReference epr =
            getEndpointReference( resourceId );
         ( (HostResource) resource ).setEndpointReference( epr );
         resource.init(  );
         add( resource );
      }
      catch ( Exception e )
      {
         throw new ResourceException( e );
View Full Code Here


               String                value     = XmlBeanUtils.getValue( obj );
               Map                   resources = resourceAdminHome.getResources(  );
               if ( resources.containsKey( value ) )
               {
                  found = true;
                  Resource resource = (Resource) resources.get( value );
                  if ( resource instanceof ApplicationResource )
                  {
                     ApplicationResource appResource = (ApplicationResource) resource;
                     ApplicationHome     appHome =
                        (ApplicationHome) initialContext.lookup( ApplicationHome.HOME_LOCATION );
View Full Code Here

               String                value = XmlBeanUtils.getValue( obj );

               Map                   resources = aHome.getResources(  );
               if ( resources.containsKey( value ) )
               {
                  Resource resource = (Resource) resources.get( value );
                  if ( resource instanceof ApplicationResource )
                  {
                     ApplicationResource appServer = (ApplicationResource) resource;
                     appServer.removeRelationship( requestDoc );
                  }
View Full Code Here

               String                value = XmlBeanUtils.getValue( obj );

               Map                   resources = aHome.getResources(  );
               if ( resources.containsKey( value ) )
               {
                  Resource resource = (Resource) resources.get( value );
                  if ( resource instanceof ApplicationResource )
                  {
                     ApplicationResource appServer = (ApplicationResource) resource;
                     appServer.setRelationship( requestDoc );
                  }
View Full Code Here

        m_id = (String) o;
    }

    public void destroy()
    {
        Resource producerResource = null;
        try
        {
            producerResource = getProducerResource();
        }
        catch ( Exception e )
View Full Code Here

   throws ResourceException,
          ResourceContextException,
          ResourceUnknownException
   {
      ResourceKey key      = resourceContext.getResourceKey(  );
      Resource    resource = null;
      try
      {
         resource = find( key );
      }
      catch ( ResourceException re )
View Full Code Here

                           CreateParamsType createParams )
   throws ResourceException,
          ResourceContextException,
          ResourceUnknownException
   {
      Resource              resource  = null;
      long                  currentId = ++m_instances;
      SimpleTypeResourceKey aKey      =
         ResourceKeyFactory.createKey( RESOURCE_ID, SERVICE_NAME + Long.toString( currentId ) );
      try
      {
         //resource = createInstance(aKey);
         resource = new HostResource( aKey, createParams );

         //The EPRs should be build using "http://schemas.xmlsoap.org/ws/2003/03/addressing" addressing namespace. It introduces spec conflicts
         //To work around thes problem the "http://schemas.xmlsoap.org/ws/2004/08/addressing" is used as namespace for addressing
         //EndpointReference epr = getEndpointReference(resourceContext.getBaseURL(  ) + "/" + getServiceName().getLocalPart() , null, SPEC_NAMESPACE_SET.getAddressingNamespace());
         EndpointReference epr =
            getEndpointReference( resourceContext.getBaseURL(  ) + "/" + getServiceName(  ).getLocalPart(  ),
                                  aKey,
                                  ExampleConstants.getAddressingNamespace(  ) );
         ( (HostResource) resource ).setEndpointReference( epr );
         resource.init(  );
         add( aKey, resource );
      }
      catch ( Exception e )
      {
         throw new ResourceException( e );
View Full Code Here

   throws ResourceException,
          ResourceContextException,
          ResourceUnknownException
   {
      ResourceKey key      = resourceContext.getResourceKey(  );
      Resource    resource = null;
      try
      {
         resource = find( key );
      }
      catch ( ResourceException re )
View Full Code Here

                           CreateParamsType params )
   throws ResourceException,
          ResourceContextException,
          ResourceUnknownException
   {
      Resource              resource  = null;
      long                  currentId = ++m_instances;
      SimpleTypeResourceKey aKey      =
         ResourceKeyFactory.createKey( RESOURCE_ID, SERVICE_NAME + Long.toString( currentId ) );
      try
      {
         // resource = createInstance(aKey);
         resource = new ApplicationResource( aKey, params );

         //The EPRs should be build using "http://schemas.xmlsoap.org/ws/2003/03/addressing" addressing namespace. It introduces spec conflicts
         //To work around thes problem the "http://schemas.xmlsoap.org/ws/2004/08/addressing" is used as namespace for addressing
         //EndpointReference epr = getEndpointReference(resourceContext.getBaseURL(  ) + "/" + getServiceName().getLocalPart() , null, SPEC_NAMESPACE_SET.getAddressingNamespace());
         EndpointReference epr =
            getEndpointReference( resourceContext.getBaseURL(  ) + "/" + getServiceName(  ).getLocalPart(  ),
                                  aKey,
                                  ExampleConstants.getAddressingNamespace(  ) );
         ( (ApplicationResource) resource ).setEndpointReference( epr );
         resource.init(  );
         add( aKey, resource );
      }
      catch ( Exception e )
      {
         throw new ResourceException( e );
View Full Code Here

               SimpleTypeResourceKey aKey      = ResourceKeyFactory.createKey( tag, value );
               Map                   resources = aHome.getResources(  );
               if ( resources.containsKey( value ) )
               {
                  found = true;
                  Resource resource = (Resource) resources.get( value );
                  if ( resource instanceof ApplicationResource )
                  {
                     ApplicationResource appResource = (ApplicationResource) resource;
                     ApplicationHome     appHome =
                        (ApplicationHome) initialContext.lookup( ApplicationHome.HOME_LOCATION );
View Full Code Here

TOP

Related Classes of org.apache.ws.resource.Resource

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.