|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picketlink.identity.federation.core.util.StaxUtil
public class StaxUtil
Utility class that deals with StAX
Constructor Summary | |
---|---|
StaxUtil()
|
Method Summary | |
---|---|
static void |
flush(XMLStreamWriter writer)
Flush the stream writer |
static XMLEventWriter |
getXMLEventWriter(OutputStream outStream)
Get an XMLEventWriter |
static XMLStreamWriter |
getXMLStreamWriter(OutputStream outStream)
Get an XMLStreamWriter |
static XMLStreamWriter |
getXMLStreamWriter(Result result)
|
static XMLStreamWriter |
getXMLStreamWriter(Writer writer)
Get an XMLStreamWriter |
static void |
setPrefix(XMLStreamWriter writer,
String prefix,
String nsURI)
Set a prefix |
static void |
writeAttribute(XMLStreamWriter writer,
QName attributeName,
String attributeValue)
Write an attribute |
static void |
writeAttribute(XMLStreamWriter writer,
String attributeName,
QName attributeValue)
Write an attribute |
static void |
writeAttribute(XMLStreamWriter writer,
String localName,
String value)
Write an xml attribute |
static void |
writeAttribute(XMLStreamWriter writer,
String localName,
String type,
String value)
Write an xml attribute |
static void |
writeAttribute(XMLStreamWriter writer,
String prefix,
String localName,
String type,
String value)
Write an xml attribute |
static void |
writeCData(XMLStreamWriter writer,
String value)
Write a string as text node |
static void |
writeCharacters(XMLStreamWriter writer,
String value)
Write a string as text node |
static void |
writeDefaultNameSpace(XMLStreamWriter writer,
String ns)
Write the default namespace |
static void |
writeDOMElement(XMLStreamWriter writer,
Element domElement)
Write DOM Element to the stream |
static void |
writeDOMNode(XMLStreamWriter writer,
Node node)
Write a DOM Node to the stream |
static void |
writeDSAKeyValueType(XMLStreamWriter writer,
DSAKeyValueType type)
|
static void |
writeEndElement(XMLStreamWriter writer)
Write an end element. |
static void |
writeKeyInfo(XMLStreamWriter writer,
KeyInfoType keyInfo)
Write the KeyInfoType |
static void |
writeNameSpace(XMLStreamWriter writer,
String prefix,
String ns)
Write a namespace |
static void |
writeRSAKeyValueType(XMLStreamWriter writer,
RSAKeyValueType type)
|
static void |
writeStartElement(XMLStreamWriter writer,
String prefix,
String localPart,
String ns)
Write a start element |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaxUtil()
Method Detail |
---|
public static void flush(XMLStreamWriter writer) throws ProcessingException
writer
-
ProcessingException
public static XMLEventWriter getXMLEventWriter(OutputStream outStream) throws ProcessingException
XMLEventWriter
outStream
-
ProcessingException
public static XMLStreamWriter getXMLStreamWriter(OutputStream outStream) throws ProcessingException
XMLStreamWriter
outStream
-
ProcessingException
public static XMLStreamWriter getXMLStreamWriter(Writer writer) throws ProcessingException
XMLStreamWriter
writer
- Writer
ProcessingException
public static XMLStreamWriter getXMLStreamWriter(Result result) throws ProcessingException
ProcessingException
public static void setPrefix(XMLStreamWriter writer, String prefix, String nsURI) throws ProcessingException
writer
- prefix
- nsURI
-
ProcessingException
public static void writeAttribute(XMLStreamWriter writer, String attributeName, QName attributeValue) throws ProcessingException
writer
- attributeName
- QName of the attributeattributeValue
-
ProcessingException
public static void writeAttribute(XMLStreamWriter writer, QName attributeName, String attributeValue) throws ProcessingException
writer
- attributeName
- QName of the attributeattributeValue
-
ProcessingException
public static void writeAttribute(XMLStreamWriter writer, String localName, String value) throws ProcessingException
writer
- localName
- localpartvalue
- value of the attribute
ProcessingException
public static void writeAttribute(XMLStreamWriter writer, String localName, String type, String value) throws ProcessingException
writer
- localName
- localparttype
- typically xsi:typevalue
- value of the attribute
ProcessingException
public static void writeAttribute(XMLStreamWriter writer, String prefix, String localName, String type, String value) throws ProcessingException
writer
- prefix
- prefix for the attributelocalName
- localparttype
- typically xsi:typevalue
- value of the attribute
ProcessingException
public static void writeCharacters(XMLStreamWriter writer, String value) throws ProcessingException
writer
- value
-
ProcessingException
public static void writeCData(XMLStreamWriter writer, String value) throws ProcessingException
writer
- value
-
ProcessingException
public static void writeDefaultNameSpace(XMLStreamWriter writer, String ns) throws ProcessingException
writer
- ns
-
ProcessingException
public static void writeDOMNode(XMLStreamWriter writer, Node node) throws ProcessingException
writer
- node
-
ProcessingException
public static void writeDOMElement(XMLStreamWriter writer, Element domElement) throws ProcessingException
writer
- domElement
-
ProcessingException
public static void writeNameSpace(XMLStreamWriter writer, String prefix, String ns) throws ProcessingException
writer
- prefix
- prefixns
- Namespace URI
ProcessingException
public static void writeStartElement(XMLStreamWriter writer, String prefix, String localPart, String ns) throws ProcessingException
writer
- prefix
- localPart
- ns
-
ProcessingException
public static void writeEndElement(XMLStreamWriter writer) throws ProcessingException
Write an end element. The stream writer keeps track of which start element needs to be closed with an end tag.
writer
-
ProcessingException
public static void writeKeyInfo(XMLStreamWriter writer, KeyInfoType keyInfo) throws ProcessingException
KeyInfoType
writer
- keyInfo
-
ProcessingException
public static void writeRSAKeyValueType(XMLStreamWriter writer, RSAKeyValueType type) throws ProcessingException
ProcessingException
public static void writeDSAKeyValueType(XMLStreamWriter writer, DSAKeyValueType type) throws ProcessingException
ProcessingException
|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |