This project has retired. For details please refer to its Attic page.
UDDICustodyTransferService xref
View Javadoc
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 javax.xml.datatype.XMLGregorianCalendar;
23  import javax.xml.ws.Holder;
24  
25  import org.apache.juddi.api.impl.UDDICustodyTransferImpl;
26  import org.uddi.custody_v3.DiscardTransferToken;
27  import org.uddi.custody_v3.KeyBag;
28  import org.uddi.custody_v3.TransferEntities;
29  import org.uddi.v3_service.DispositionReportFaultMessage;
30  import org.uddi.v3_service.UDDICustodyTransferPortType;
31  
32  /**
33   * UDDISecurityPortType wrapper so it can be exposed as a service over RMI.
34   * 
35   * @author <a href="mailto:kstam@apache.org">Kurt T Stam</a>
36   *
37   */
38  public class UDDICustodyTransferService extends UnicastRemoteObject implements UDDICustodyTransferPortType {
39  
40  	private static final long serialVersionUID = 8900970766388210839L;
41  	private transient UDDICustodyTransferPortType custodyTransfer = new UDDICustodyTransferImpl();
42  	
43  	protected UDDICustodyTransferService(int port) throws RemoteException {
44  		super(port);
45  	}
46  
47  	public void discardTransferToken(DiscardTransferToken body)
48  			throws DispositionReportFaultMessage, RemoteException {
49  		custodyTransfer.discardTransferToken(body);
50  	}
51  
52  	public void getTransferToken(String authInfo, KeyBag keyBag,
53  			Holder<String> nodeID, Holder<XMLGregorianCalendar> expirationTime,
54  			Holder<byte[]> opaqueToken) throws DispositionReportFaultMessage,
55  			RemoteException {
56  		custodyTransfer.getTransferToken(authInfo, keyBag, nodeID, expirationTime, opaqueToken);
57  	}
58  
59  	public void transferEntities(TransferEntities body)
60  			throws DispositionReportFaultMessage, RemoteException {
61  		custodyTransfer.transferEntities(body);
62  	}
63  	
64  	
65  
66  }