Class EndpointImpl
- java.lang.Object
-
- org.opensaml.core.xml.AbstractXMLObject
-
- org.opensaml.saml.saml2.metadata.impl.EndpointImpl
-
- All Implemented Interfaces:
AttributeExtensibleXMLObject,ElementExtensibleXMLObject,XMLObject,SAMLObject,Endpoint
- Direct Known Subclasses:
AssertionIDRequestServiceImpl,AttributeServiceImpl,AuthnQueryServiceImpl,AuthzServiceImpl,IndexedEndpointImpl,ManageNameIDServiceImpl,NameIDMappingServiceImpl,RequestInitiatorImpl,SingleLogoutServiceImpl,SingleSignOnServiceImpl
public abstract class EndpointImpl extends AbstractXMLObject implements Endpoint
A concrete implementation ofEndpoint.
-
-
Field Summary
Fields Modifier and Type Field Description private StringbindingIdBinding URI.private StringlocationEndpoint location URI.private StringresponseLocationResponse location URI.private AttributeMapunknownAttributes"anyAttribute" attributes.private IndexedXMLObjectChildrenList<XMLObject>unknownChildrenchild "any" elements.-
Fields inherited from interface org.opensaml.saml.saml2.metadata.Endpoint
BINDING_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, LOCATION_ATTRIB_NAME, RESPONSE_LOCATION_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEndpointImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBinding()Gets the URI identifier for the binding supported by this Endpoint.StringgetLocation()Gets the URI, usually a URL, for the location of this Endpoint.List<XMLObject>getOrderedChildren()Gets an unmodifiable list of child elements in the order that they will appear in the DOM.StringgetResponseLocation()Gets the URI, usually a URL, responses should be sent to this for this Endpoint.AttributeMapgetUnknownAttributes()Gets a mutable map of the attributes.List<XMLObject>getUnknownXMLObjects()Gets the list of XMLObjects added to this XMLObject as part of the "any" content model.List<XMLObject>getUnknownXMLObjects(QName typeOrName)Gets the list of XMLObjects added to this XMLObject as part of the "any" content model, and which match the specified QName.voidsetBinding(String binding)Sets the URI identifier for the binding supported by this Endpoint.voidsetLocation(String theLocation)Sets the URI, usually a URL, for the location of this Endpoint.voidsetResponseLocation(String theLocation)Sets the URI, usually a URL, responses should be sent to this for this Endpoint.-
Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
-
-
-
Field Detail
-
bindingId
private String bindingId
Binding URI.
-
location
private String location
Endpoint location URI.
-
responseLocation
private String responseLocation
Response location URI.
-
unknownAttributes
private final AttributeMap unknownAttributes
"anyAttribute" attributes.
-
unknownChildren
private final IndexedXMLObjectChildrenList<XMLObject> unknownChildren
child "any" elements.
-
-
Constructor Detail
-
EndpointImpl
protected EndpointImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
Constructor.- Parameters:
namespaceURI- the namespace the element is inelementLocalName- the local name of the XML element this Object representsnamespacePrefix- the prefix for the given namespace
-
-
Method Detail
-
getBinding
public String getBinding()
Gets the URI identifier for the binding supported by this Endpoint.- Specified by:
getBindingin interfaceEndpoint- Returns:
- the URI identifier for the binding supported by this Endpoint
-
setBinding
public void setBinding(String binding)
Sets the URI identifier for the binding supported by this Endpoint.- Specified by:
setBindingin interfaceEndpoint- Parameters:
binding- the URI identifier for the binding supported by this Endpoint
-
getLocation
public String getLocation()
Gets the URI, usually a URL, for the location of this Endpoint.- Specified by:
getLocationin interfaceEndpoint- Returns:
- the location of this Endpoint
-
setLocation
public void setLocation(String theLocation)
Sets the URI, usually a URL, for the location of this Endpoint.- Specified by:
setLocationin interfaceEndpoint- Parameters:
theLocation- the location of this Endpoint
-
getResponseLocation
public String getResponseLocation()
Gets the URI, usually a URL, responses should be sent to this for this Endpoint.- Specified by:
getResponseLocationin interfaceEndpoint- Returns:
- the URI responses should be sent to this for this Endpoint
-
setResponseLocation
public void setResponseLocation(String theLocation)
Sets the URI, usually a URL, responses should be sent to this for this Endpoint.- Specified by:
setResponseLocationin interfaceEndpoint- Parameters:
theLocation- the URI responses should be sent to this for this Endpoint
-
getUnknownAttributes
public AttributeMap getUnknownAttributes()
Gets a mutable map of the attributes. The map key is the namespace qualified name of the attribute, the map value is the value of the attribute.- Specified by:
getUnknownAttributesin interfaceAttributeExtensibleXMLObject- Returns:
- a map of the attributes
-
getUnknownXMLObjects
public List<XMLObject> getUnknownXMLObjects()
Gets the list of XMLObjects added to this XMLObject as part of the "any" content model.- Specified by:
getUnknownXMLObjectsin interfaceElementExtensibleXMLObject- Returns:
- list of XMLObjects added to this XMLObject as part of the "any" content model
-
getUnknownXMLObjects
public List<XMLObject> getUnknownXMLObjects(QName typeOrName)
Gets the list of XMLObjects added to this XMLObject as part of the "any" content model, and which match the specified QName.- Specified by:
getUnknownXMLObjectsin interfaceElementExtensibleXMLObject- Parameters:
typeOrName- the QName of the statements to return- Returns:
- list of XMLObjects added to this XMLObject as part of the "any" content model TODO: think this should be typed List<? extends XMLObject>
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildrenin interfaceXMLObject- Returns:
- ordered list of child elements
-
-