1 /*
2 * Copyright 2001-2009 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.rmi;
18
19 import java.rmi.RemoteException;
20 import java.rmi.server.UnicastRemoteObject;
21
22 import org.apache.juddi.api.impl.UDDISubscriptionListenerImpl;
23 import org.uddi.api_v3.DispositionReport;
24 import org.uddi.subr_v3.NotifySubscriptionListener;
25 import org.uddi.v3_service.DispositionReportFaultMessage;
26 import org.uddi.v3_service.UDDISubscriptionListenerPortType;
27
28 /**
29 * UDDISecurityPortType wrapper so it can be exposed as a service over RMI.
30 *
31 * @author <a href="mailto:kstam@apache.org">Kurt T Stam</a>
32 *
33 */
34 public class UDDISubscriptionListenerService extends UnicastRemoteObject implements UDDISubscriptionListenerPortType {
35
36 private static final long serialVersionUID = -5103095115366760255L;
37 private transient UDDISubscriptionListenerPortType subscriptionListener = new UDDISubscriptionListenerImpl();
38
39 protected UDDISubscriptionListenerService(int port) throws RemoteException {
40 super(port);
41 }
42
43 public DispositionReport notifySubscriptionListener(
44 NotifySubscriptionListener body)
45 throws DispositionReportFaultMessage, RemoteException {
46 return subscriptionListener.notifySubscriptionListener(body);
47 }
48
49 }