This project has retired. For details please refer to its Attic page.
Notifier xref
View Javadoc
1   /*
2    * Copyright 2001-2008 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  package org.apache.juddi.subscription.notify;
18  
19  import java.rmi.RemoteException;
20  
21  import org.uddi.api_v3.DispositionReport;
22  import org.uddi.subr_v3.NotifySubscriptionListener;
23  import org.uddi.v3_service.DispositionReportFaultMessage;
24  
25  /**
26   * This is an interface class used when the jUDDI server notifies subscription listeners
27   * asynchronously.
28   * 
29   * You must implement a constructor that accepts a single parameter of type
30   * "org.apache.juddi.model.BindingTemplate".
31   * 
32   * In addition, implementing classes must be within the same package name as this class
33   * and must be named after the following pattern:<br>
34   * PROTOCOLNotifier<br>
35   * Example: When the binding Template's access point is http://myserver:9999/endpoint, 
36   * then the class HTTPNotifier is called. Endpoints must start with protocol: in 
37   * order for this to work and they will be made uppercase when searching for the 
38   * class to trigger.
39   * 
40   */
41  public interface Notifier {
42  
43  	public DispositionReport notifySubscriptionListener(NotifySubscriptionListener body) 
44  		throws DispositionReportFaultMessage, RemoteException;
45  	
46  }