Package org.apache.ws.resource.impl

Examples of org.apache.ws.resource.impl.SimpleTypeResourceKey


      return job;
   }

    private SimpleTypeResourceKey createResourceKey(int 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( jobId ) );
        return key;
    }
View Full Code Here


                                     String                jobName,
                                     PrinterPortResource printerResource )
   {
      ++m_jobId;
       int jobId = (int)m_jobId;
       SimpleTypeResourceKey key = createResourceKey(jobId);
       EndpointReferenceType jobEpr = getEprForResource( key,
                                                        resourceContext.getBaseURL(  ) );
      JobPortResource       job    = new JobPortResource( jobEpr, jobId, jobName, printerResource );
      job.init(  );
      add( key, job );
View Full Code Here

                MessageFactory messageFactory = MessageFactory.newInstance();
                SOAPMessage message = messageFactory.createMessage();
                SOAPHeader soapHeader = message.getSOAPHeader();
                SOAPHeaderElement soapHeaderElement = soapHeader.addHeaderElement( NameUtils.toName( new QName( AbstractSushiService.TARGET_NSURI, "ResourceID", AbstractSushiService.TARGET_NSPREFIX ) ) );
                soapHeaderElement.addTextNode( ID_KEY );
                m_key = new SimpleTypeResourceKey( soapHeaderElement );
            }
            catch ( SOAPException e )
            {
                e.printStackTrace();
            }
View Full Code Here

                MessageFactory messageFactory = MessageFactory.newInstance();
                SOAPMessage message = messageFactory.createMessage();
                SOAPHeader soapHeader = message.getSOAPHeader();
                SOAPHeaderElement soapHeaderElement = soapHeader.addHeaderElement( NameUtils.toName( new QName( TARGET_NSURI, "ResourceIdentifier", TARGET_NSPREFIX ) ) );
                soapHeaderElement.addTextNode( ID_KEY );
                m_key = new SimpleTypeResourceKey( soapHeaderElement );
            }
            catch ( SOAPException e )
            {
                e.printStackTrace();
            }
View Full Code Here

   
    public Subscription create(){
        Subscription s = new Subscription();
        String id = (String) s.getID();

        SimpleTypeResourceKey resourceKey = new SimpleTypeResourceKey( QName.valueOf( getResourceKeyName()), id);
        add(resourceKey,s);
        return s;
    }
View Full Code Here

    public Subscription create(Filter filter, Calendar expires, java.net.URI delivery){
        Subscription rs = new Subscription(filter,expires, delivery);
        rs.setResourceHome(this);
        String id = (String) rs.getID();

        SimpleTypeResourceKey resourceKey = new SimpleTypeResourceKey( QName.valueOf( getResourceKeyName()), id);
        //TODO !!!!! woher kommt publisher epr url ??? HACK for tcpmon 12345-8080
        String subscriptionAddress = "http://localhost:12345/axis/services/SubscriptionManager";
        EndpointReference subscriptionEPR = getEndpointReference( subscriptionAddress, resourceKey, Constants.NS_URI_ADDRESSING_2004_08 );
        rs.setEpr(subscriptionEPR);
        rs.setResourceKey(resourceKey);
View Full Code Here

            //get matches
            java.util.Iterator it= yfilter.getMatchedQueries().iterator();
            while(it.hasNext()){
                Integer qid = (Integer) it.next();
                String sid = queries[qid.intValue()];
                SimpleTypeResourceKey rk = new SimpleTypeResourceKey( QName.valueOf( getResourceKeyName()), sid);
                Subscription s = (Subscription)super.find(rk);
                //notify matches
                LOG.info("notify : "+sid);
                s.getNotificationConsumer().notify(s,env.getBody());
            }
View Full Code Here

            subscription.setSelector( selector );
            subscription.setPrecondition( precondition );
            subscription.setPolicy( policy );
            subscription.init()// initialize resource properties
            String id = (String) subscription.getID();
            SimpleTypeResourceKey resourceKey = new SimpleTypeResourceKey( QName.valueOf( getResourceKeyName() ), id );
            EndpointReference subscriptionEPR = getEndpointReference( getSubscriptionAddress( producerReference ),
                    resourceKey, nsSet.getAddressingNamespace() );
            subscription.setEndpointReference( subscriptionEPR );
            add( resourceKey, subscription );
            return subscription;
View Full Code Here

    }
   
   
    public Subscription create(){       
        Subscription s = new Subscription();
        SimpleTypeResourceKey resourceKey = new SimpleTypeResourceKey( QName.valueOf( getResourceKeyName()), (String) s.getID());
        s.setResourceKey(resourceKey);
        s.setResourceHome(this);
        LOG.info("before add "+ m_resources.size()+" instance "+this);       
        add(resourceKey,s);
    //    m_resources.put(resourceKey,s);
View Full Code Here

    * @return DOCUMENT_ME
    */
   public static SimpleTypeResourceKey createKey( QName  name,
                                                  Object id )
   {
      SimpleTypeResourceKey aKey = new SimpleTypeResourceKey( name, id );
      return aKey;
   }
View Full Code Here

TOP

Related Classes of org.apache.ws.resource.impl.SimpleTypeResourceKey

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.