ThreadSession.java
001 /*
002  *
003  * Licensed to the Apache Software Foundation (ASF) under one
004  * or more contributor license agreements.  See the NOTICE file
005  * distributed with this work for additional information
006  * regarding copyright ownership.  The ASF licenses this file
007  * to you under the Apache License, Version 2.0 (the
008  * "License"); you may not use this file except in compliance
009  * with the License.  You may obtain a copy of the License at
010  *
011  *   http://www.apache.org/licenses/LICENSE-2.0
012  *
013  * Unless required by applicable law or agreed to in writing,
014  * software distributed under the License is distributed on an
015  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
016  * KIND, either express or implied.  See the License for the
017  * specific language governing permissions and limitations
018  * under the License.
019  *
020  */
021 package org.apache.qpid.management.wsdm.common;
022 
023 import javax.management.ObjectName;
024 
025 import org.w3c.dom.Document;
026 import org.w3c.dom.Element;
027 
028 
029 /**
030  * Thread-scoped session.
031  
032  @author Andrea Gazzarini
033  */
034 public class ThreadSession 
035 {  
036   private ObjectName _objectName;
037   private Document _wsdl;
038   private Element [] additionalProperties;
039   /**
040    * Empty constructor.
041    */
042   ThreadSession() 
043   {
044   }
045 
046   /**
047    * Gets the object name associated with this thread session.
048    
049    @return the object name associated with this thread session.
050    */
051   public ObjectName getObjectName() 
052   {
053     return _objectName;
054   }
055 
056   /**
057    * Sets the object name on this thread session.
058    
059    @param the object name of this thread session..
060    */
061   public void setObjectName(ObjectName objectName
062   {
063     this._objectName = objectName;
064   }
065 
066   /**
067    * Sets the WSDL document on this thread session.
068    
069    @param the WSDL document of this thread session..
070    */
071   public void setWsdlDocument(Document wsdlDoc
072   {
073     this._wsdl = wsdlDoc;
074   }
075   
076   /**
077    * Gets the WSDL document associated with this thread session.
078    
079    @return the WSDL document associated with this thread session.
080    */
081   public Document getWsdlDocument() 
082   {
083     return _wsdl;
084   }
085 
086   /**
087    * Gets the RDM elements associated with this thread session.
088    
089    @return the RDM elements associated with this thread session.
090    */
091   public Element[] getResourceMetadataDescriptor() 
092   {
093     return additionalProperties;
094   }
095   
096   /**
097    * Sets the WSDL elements on this thread session.
098    
099    @param the WSDL elements of this thread session..
100    */
101   public void setResourceMetadataDescriptor(Element[] rmd
102   {
103     this.additionalProperties = rmd;
104   }  
105 }