1   /*
2    * Copyright 2000-2001,2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  /* 
18  
19   */
20  
21  package org.apache.wsrp4j.producer;
22  
23  import oasis.names.tc.wsrp.v1.types.RegistrationContext;
24  import oasis.names.tc.wsrp.v1.types.RegistrationData;
25  
26  /**
27   * This interface provides access to Registration-objects.
28   * Provides setters and getters.
29   * 
30   * @author <a href="mailto:stefan.behl@de.ibm.com">Stefan Behl</a>
31   */
32  public interface Registration {
33  
34      /**
35       * Returns the registration context. The registration context contains a
36       * registration handle (required) and optionally a registration state.
37       *
38       * @return RegistrationContext
39       */
40      public RegistrationContext getRegistrationContext();
41  
42      /**
43       * Returns the registration data. Supplies consumer data required for
44       * registration with a Producer.
45       *
46       * @return RegistrationData
47       */
48      public RegistrationData getRegistrationData();
49  
50      /**
51       * Sets the registration context. The registration context contains a
52       * registration handle (required) and optionally a registration state.
53       *
54       * @param registrationContext The registration context of a certain Consumer.
55       */
56      public void setRegistrationContext(RegistrationContext registrationContext);
57  
58      /**
59       * Sets the registration data. Supplies consumer data required for
60       * registration with a Producer.
61       *
62       * @param registrationData The registration data of a certain Consumer.
63       */
64      public void setRegistrationData(RegistrationData registrationData);
65  }