1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.saml2.ecp.impl;
18
19 import java.util.ArrayList;
20 import java.util.Collections;
21 import java.util.List;
22
23 import org.opensaml.common.impl.AbstractSAMLObject;
24 import org.opensaml.saml2.core.IDPList;
25 import org.opensaml.saml2.core.Issuer;
26 import org.opensaml.saml2.ecp.Request;
27 import org.opensaml.xml.XMLObject;
28 import org.opensaml.xml.schema.XSBooleanValue;
29
30
31
32
33 public class RequestImpl extends AbstractSAMLObject implements Request {
34
35
36 private IDPList idpList;
37
38
39 private Issuer issuer;
40
41
42 private String providerName;
43
44
45 private XSBooleanValue isPassive;
46
47
48 private String soap11Actor;
49
50
51 private XSBooleanValue soap11MustUnderstand;
52
53
54
55
56
57
58
59
60 protected RequestImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
61 super(namespaceURI, elementLocalName, namespacePrefix);
62 }
63
64
65 public IDPList getIDPList() {
66 return idpList;
67 }
68
69
70 public void setIDPList(IDPList newIDPList) {
71 idpList = prepareForAssignment(idpList, newIDPList);
72 }
73
74
75 public Issuer getIssuer() {
76 return issuer;
77 }
78
79
80 public void setIssuer(Issuer newIssuer) {
81 issuer = prepareForAssignment(issuer, newIssuer);
82 }
83
84
85 public String getProviderName() {
86 return providerName;
87 }
88
89
90 public void setProviderName(String newProviderName) {
91 providerName = prepareForAssignment(providerName, newProviderName);
92 }
93
94
95 public Boolean isPassive() {
96 if (isPassive != null) {
97 return isPassive.getValue();
98 }
99
100 return Boolean.FALSE;
101 }
102
103
104 public XSBooleanValue isPassiveXSBoolean() {
105 return isPassive;
106 }
107
108
109 public void setPassive(Boolean newIsPassive) {
110 if (newIsPassive != null) {
111 isPassive = prepareForAssignment(isPassive, new XSBooleanValue(newIsPassive, false));
112 } else {
113 isPassive = prepareForAssignment(isPassive, null);
114 }
115 }
116
117
118 public void setPassive(XSBooleanValue newIsPassive) {
119 this.isPassive = prepareForAssignment(this.isPassive, newIsPassive);
120 }
121
122
123 public Boolean isSOAP11MustUnderstand() {
124 if (soap11MustUnderstand != null) {
125 return soap11MustUnderstand.getValue();
126 }
127 return Boolean.FALSE;
128 }
129
130
131 public XSBooleanValue isSOAP11MustUnderstandXSBoolean() {
132 return soap11MustUnderstand;
133 }
134
135
136 public void setSOAP11MustUnderstand(Boolean newMustUnderstand) {
137 if (newMustUnderstand != null) {
138 soap11MustUnderstand = prepareForAssignment(soap11MustUnderstand,
139 new XSBooleanValue(newMustUnderstand, true));
140 } else {
141 soap11MustUnderstand = prepareForAssignment(soap11MustUnderstand, null);
142 }
143 }
144
145
146 public void setSOAP11MustUnderstand(XSBooleanValue newMustUnderstand) {
147 soap11MustUnderstand = prepareForAssignment(soap11MustUnderstand, newMustUnderstand);
148 }
149
150
151 public String getSOAP11Actor() {
152 return soap11Actor;
153 }
154
155
156 public void setSOAP11Actor(String newActor) {
157 soap11Actor = prepareForAssignment(soap11Actor, newActor);
158 }
159
160
161 public List<XMLObject> getOrderedChildren() {
162 ArrayList<XMLObject> children = new ArrayList<XMLObject>();
163 if (issuer!=null) {
164 children.add(issuer);
165 }
166 if (idpList!=null) {
167 children.add(idpList);
168 }
169 return Collections.unmodifiableList(children);
170 }
171
172 }