public void write(SAML11SubjectLocalityType locality) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_LOCALITY.get(), SAML11Constants.ASSERTION_11_NSURI); String ip = locality.getIpAddress(); if (StringUtil.isNotNull(ip)) { StaxUtil.writeAttribute(writer, SAML11Constants.IP_ADDRESS, ip); } String dns = locality.getDnsAddress(); if (StringUtil.isNotNull(dns)) { StaxUtil.writeAttribute(writer, SAML11Constants.DNS_ADDRESS, dns); } StaxUtil.writeEndElement(writer); }
SAML11SubjectLocalityType subjectLocalityType = new SAML11SubjectLocalityType(); Attribute address = startElement.getAttributeByName(new QName(SAML11Constants.IP_ADDRESS)); if (address != null) subjectLocalityType.setIpAddress(StaxParserUtil.getAttributeValue(address)); subjectLocalityType.setDnsAddress(StaxParserUtil.getAttributeValue(dns));
SAML11SubjectLocalityType subjectLocalityType = new SAML11SubjectLocalityType(); Attribute address = startElement.getAttributeByName(new QName(SAML11Constants.IP_ADDRESS)); if (address != null) subjectLocalityType.setIpAddress(StaxParserUtil.getAttributeValue(address)); subjectLocalityType.setDnsAddress(StaxParserUtil.getAttributeValue(dns));
} else if (JBossSAMLConstants.SUBJECT_LOCALITY.get().equals(tag)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); SAML11SubjectLocalityType subjectLocalityType = new SAML11SubjectLocalityType(); Attribute address = startElement.getAttributeByName(new QName(SAML11Constants.IP_ADDRESS)); if (address != null) { subjectLocalityType.setIpAddress(StaxParserUtil.getAttributeValue(address)); subjectLocalityType.setDnsAddress(StaxParserUtil.getAttributeValue(dns));
public void write(SAML11SubjectLocalityType locality) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_LOCALITY.get(), SAML11Constants.ASSERTION_11_NSURI); String ip = locality.getIpAddress(); if (StringUtil.isNotNull(ip)) { StaxUtil.writeAttribute(writer, SAML11Constants.IP_ADDRESS, ip); } String dns = locality.getDnsAddress(); if (StringUtil.isNotNull(dns)) { StaxUtil.writeAttribute(writer, SAML11Constants.DNS_ADDRESS, dns); } StaxUtil.writeEndElement(writer); }
} else if (JBossSAMLConstants.SUBJECT_LOCALITY.get().equals(tag)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); SAML11SubjectLocalityType subjectLocalityType = new SAML11SubjectLocalityType(); Attribute address = startElement.getAttributeByName(new QName(SAML11Constants.IP_ADDRESS)); if (address != null) { subjectLocalityType.setIpAddress(StaxParserUtil.getAttributeValue(address)); subjectLocalityType.setDnsAddress(StaxParserUtil.getAttributeValue(dns));
public void write(SAML11SubjectLocalityType locality) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_LOCALITY.get(), SAML11Constants.ASSERTION_11_NSURI); String ip = locality.getIpAddress(); if (StringUtil.isNotNull(ip)) { StaxUtil.writeAttribute(writer, SAML11Constants.IP_ADDRESS, ip); } String dns = locality.getDnsAddress(); if (StringUtil.isNotNull(dns)) { StaxUtil.writeAttribute(writer, SAML11Constants.DNS_ADDRESS, dns); } StaxUtil.writeEndElement(writer); }
} else if (JBossSAMLConstants.SUBJECT_LOCALITY.get().equals(tag)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); SAML11SubjectLocalityType subjectLocalityType = new SAML11SubjectLocalityType(); Attribute address = startElement.getAttributeByName(new QName(SAML11Constants.IP_ADDRESS)); if (address != null) { subjectLocalityType.setIpAddress(StaxParserUtil.getAttributeValue(address)); subjectLocalityType.setDnsAddress(StaxParserUtil.getAttributeValue(dns));
public void write(SAML11SubjectLocalityType locality) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_LOCALITY.get(), SAML11Constants.ASSERTION_11_NSURI); String ip = locality.getIpAddress(); if (StringUtil.isNotNull(ip)) { StaxUtil.writeAttribute(writer, SAML11Constants.IP_ADDRESS, ip); } String dns = locality.getDnsAddress(); if (StringUtil.isNotNull(dns)) { StaxUtil.writeAttribute(writer, SAML11Constants.DNS_ADDRESS, dns); } StaxUtil.writeEndElement(writer); }
public void write(SAML11SubjectLocalityType locality) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_LOCALITY.get(), SAML11Constants.ASSERTION_11_NSURI); String ip = locality.getIpAddress(); if (StringUtil.isNotNull(ip)) { StaxUtil.writeAttribute(writer, SAML11Constants.IP_ADDRESS, ip); } String dns = locality.getDnsAddress(); if (StringUtil.isNotNull(dns)) { StaxUtil.writeAttribute(writer, SAML11Constants.DNS_ADDRESS, dns); } StaxUtil.writeEndElement(writer); }