|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| package org.globus.cas; |
|
9 |
| |
|
10 |
| public class CommunityAuthorizationServiceAddressingLocator extends org.globus.cas.CommunityAuthorizationServiceLocator implements org.globus.cas.CommunityAuthorizationServiceAddressing { |
|
11 |
0
| public org.globus.cas.CASPortType getCASPortTypePort(org.apache.axis.message.addressing.EndpointReferenceType reference) throws javax.xml.rpc.ServiceException {
|
|
12 |
0
| org.apache.axis.message.addressing.AttributedURI address = reference.getAddress();
|
|
13 |
0
| if (address == null) {
|
|
14 |
0
| throw new javax.xml.rpc.ServiceException("No address in EndpointReference");
|
|
15 |
| } |
|
16 |
0
| java.net.URL endpoint;
|
|
17 |
0
| try {
|
|
18 |
0
| endpoint = new java.net.URL(address.toString());
|
|
19 |
| } catch (java.net.MalformedURLException e) { |
|
20 |
0
| throw new javax.xml.rpc.ServiceException(e);
|
|
21 |
| } |
|
22 |
0
| org.globus.cas.CASPortType _stub = getCASPortTypePort(endpoint);
|
|
23 |
0
| if (_stub != null) {
|
|
24 |
0
| org.apache.axis.message.addressing.AddressingHeaders headers =
|
|
25 |
| new org.apache.axis.message.addressing.AddressingHeaders(); |
|
26 |
0
| headers.setTo(address);
|
|
27 |
0
| headers.setReferenceProperties(reference.getProperties());
|
|
28 |
0
| ((javax.xml.rpc.Stub)_stub)._setProperty(org.apache.axis.message.addressing.Constants.ENV_ADDRESSING_SHARED_HEADERS, headers);
|
|
29 |
| } |
|
30 |
0
| return _stub;
|
|
31 |
| } |
|
32 |
| |
|
33 |
| |
|
34 |
| } |