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 of Endpoint.
  • Field Details

    • 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 Details

    • EndpointImpl

      protected EndpointImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - the namespace the element is in
      elementLocalName - the local name of the XML element this Object represents
      namespacePrefix - the prefix for the given namespace
  • Method Details

    • getBinding

      public String getBinding()
      Gets the URI identifier for the binding supported by this Endpoint.
      Specified by:
      getBinding in interface Endpoint
      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:
      setBinding in interface Endpoint
      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:
      getLocation in interface Endpoint
      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:
      setLocation in interface Endpoint
      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:
      getResponseLocation in interface Endpoint
      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:
      setResponseLocation in interface Endpoint
      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:
      getUnknownAttributes in interface AttributeExtensibleXMLObject
      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:
      getUnknownXMLObjects in interface ElementExtensibleXMLObject
      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:
      getUnknownXMLObjects in interface ElementExtensibleXMLObject
      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:
      getOrderedChildren in interface XMLObject
      Returns:
      ordered list of child elements