1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.saml2.metadata.impl;
18
19 import java.util.Collections;
20 import java.util.List;
21
22 import javax.xml.namespace.QName;
23
24 import org.opensaml.common.impl.AbstractSAMLObject;
25 import org.opensaml.saml2.metadata.Endpoint;
26 import org.opensaml.xml.XMLObject;
27 import org.opensaml.xml.util.AttributeMap;
28 import org.opensaml.xml.util.IndexedXMLObjectChildrenList;
29
30
31
32
33 public abstract class EndpointImpl extends AbstractSAMLObject implements Endpoint {
34
35
36 private String bindingId;
37
38
39 private String location;
40
41
42 private String responseLocation;
43
44
45 private final AttributeMap unknownAttributes;
46
47
48 private final IndexedXMLObjectChildrenList<XMLObject> unknownChildren;
49
50
51
52
53
54
55
56
57 protected EndpointImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
58 super(namespaceURI, elementLocalName, namespacePrefix);
59 unknownAttributes = new AttributeMap(this);
60 unknownChildren = new IndexedXMLObjectChildrenList<XMLObject>(this);
61 }
62
63
64 public String getBinding() {
65 return bindingId;
66 }
67
68
69 public void setBinding(String binding) {
70 bindingId = prepareForAssignment(bindingId, binding);
71 }
72
73
74 public String getLocation() {
75 return location;
76 }
77
78
79 public void setLocation(String location) {
80 this.location = prepareForAssignment(this.location, location);
81 }
82
83
84 public String getResponseLocation() {
85 return responseLocation;
86 }
87
88
89 public void setResponseLocation(String location) {
90 responseLocation = prepareForAssignment(responseLocation, location);
91 }
92
93
94
95
96 public AttributeMap getUnknownAttributes() {
97 return unknownAttributes;
98 }
99
100
101
102
103 public List<XMLObject> getUnknownXMLObjects() {
104 return unknownChildren;
105 }
106
107
108 public List<XMLObject> getUnknownXMLObjects(QName typeOrName) {
109 return (List<XMLObject>) unknownChildren.subList(typeOrName);
110 }
111
112
113
114
115 public List<XMLObject> getOrderedChildren() {
116 return Collections.unmodifiableList(unknownChildren);
117 }
118 }