Class DocumentContextImpl
- java.lang.Object
-
- org.apache.xml.security.stax.impl.DocumentContextImpl
-
- All Implemented Interfaces:
java.lang.Cloneable
,DocumentContext
public class DocumentContextImpl extends java.lang.Object implements DocumentContext, java.lang.Cloneable
A concrete DocumentContext Implementation
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
baseURI
private java.util.Map<java.lang.Integer,XMLSecurityConstants.ContentType>
contentTypeMap
private java.lang.String
encoding
private java.util.Map<java.lang.Object,java.lang.Integer>
processorToIndexMap
-
Constructor Summary
Constructors Constructor Description DocumentContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DocumentContextImpl
clone()
java.lang.String
getBaseURI()
java.util.Map<java.lang.Integer,XMLSecurityConstants.ContentType>
getContentTypeMap()
java.lang.String
getEncoding()
java.util.List<XMLSecurityConstants.ContentType>
getProtectionOrder()
boolean
isInEncryptedContent()
boolean
isInSignedContent()
void
setBaseURI(java.lang.String baseURI)
protected void
setContentTypeMap(java.util.Map<java.lang.Integer,XMLSecurityConstants.ContentType> contentTypeMap)
void
setEncoding(java.lang.String encoding)
void
setIsInEncryptedContent(int index, java.lang.Object key)
Indicates if we currently stay in an encrypted contentvoid
setIsInSignedContent(int index, java.lang.Object key)
Indicates if we currently stay in a signed contentvoid
unsetIsInEncryptedContent(java.lang.Object key)
unset when we leave the encrypted contentvoid
unsetIsInSignedContent(java.lang.Object key)
unset when we leave the signed content
-
-
-
Field Detail
-
encoding
private java.lang.String encoding
-
baseURI
private java.lang.String baseURI
-
contentTypeMap
private final java.util.Map<java.lang.Integer,XMLSecurityConstants.ContentType> contentTypeMap
-
processorToIndexMap
private final java.util.Map<java.lang.Object,java.lang.Integer> processorToIndexMap
-
-
Method Detail
-
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncoding
in interfaceDocumentContext
- Returns:
- The Encoding of the document
-
setEncoding
public void setEncoding(java.lang.String encoding)
-
getBaseURI
public java.lang.String getBaseURI()
- Specified by:
getBaseURI
in interfaceDocumentContext
- Returns:
- The base URI of the document if known
-
setBaseURI
public void setBaseURI(java.lang.String baseURI)
-
setIsInEncryptedContent
public void setIsInEncryptedContent(int index, java.lang.Object key)
Description copied from interface:DocumentContext
Indicates if we currently stay in an encrypted content- Specified by:
setIsInEncryptedContent
in interfaceDocumentContext
-
unsetIsInEncryptedContent
public void unsetIsInEncryptedContent(java.lang.Object key)
Description copied from interface:DocumentContext
unset when we leave the encrypted content- Specified by:
unsetIsInEncryptedContent
in interfaceDocumentContext
-
isInEncryptedContent
public boolean isInEncryptedContent()
- Specified by:
isInEncryptedContent
in interfaceDocumentContext
- Returns:
- true if we currently stay in encrypted content
-
setIsInSignedContent
public void setIsInSignedContent(int index, java.lang.Object key)
Description copied from interface:DocumentContext
Indicates if we currently stay in a signed content- Specified by:
setIsInSignedContent
in interfaceDocumentContext
-
unsetIsInSignedContent
public void unsetIsInSignedContent(java.lang.Object key)
Description copied from interface:DocumentContext
unset when we leave the signed content- Specified by:
unsetIsInSignedContent
in interfaceDocumentContext
-
isInSignedContent
public boolean isInSignedContent()
- Specified by:
isInSignedContent
in interfaceDocumentContext
- Returns:
- true if we currently stay in signed content
-
getProtectionOrder
public java.util.List<XMLSecurityConstants.ContentType> getProtectionOrder()
- Specified by:
getProtectionOrder
in interfaceDocumentContext
-
getContentTypeMap
public java.util.Map<java.lang.Integer,XMLSecurityConstants.ContentType> getContentTypeMap()
- Specified by:
getContentTypeMap
in interfaceDocumentContext
-
setContentTypeMap
protected void setContentTypeMap(java.util.Map<java.lang.Integer,XMLSecurityConstants.ContentType> contentTypeMap)
-
clone
protected DocumentContextImpl clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
-