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- Version:
- $Revision: 1399606 $ $Date: 2012-10-18 14:17:41 +0200 (Thu, 18 Oct 2012) $
- Author:
- $Author: giger $
-
-
Constructor Summary
Constructors Constructor Description DocumentContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DocumentContextImplclone()java.lang.StringgetBaseURI()java.util.Map<java.lang.Integer,XMLSecurityConstants.ContentType>getContentTypeMap()java.lang.StringgetEncoding()java.util.List<XMLSecurityConstants.ContentType>getProtectionOrder()booleanisInEncryptedContent()booleanisInSignedContent()voidsetBaseURI(java.lang.String baseURI)protected voidsetContentTypeMap(java.util.Map<java.lang.Integer,XMLSecurityConstants.ContentType> contentTypeMap)voidsetEncoding(java.lang.String encoding)voidsetIsInEncryptedContent(int index, java.lang.Object key)Indicates if we currently stay in an encrypted contentvoidsetIsInSignedContent(int index, java.lang.Object key)Indicates if we currently stay in a signed contentvoidunsetIsInEncryptedContent(java.lang.Object key)unset when we leave the encrypted contentvoidunsetIsInSignedContent(java.lang.Object key)unset when we leave the signed content
-
-
-
Method Detail
-
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncodingin interfaceDocumentContext- Returns:
- The Encoding of the document
-
setEncoding
public void setEncoding(java.lang.String encoding)
-
getBaseURI
public java.lang.String getBaseURI()
- Specified by:
getBaseURIin 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:DocumentContextIndicates if we currently stay in an encrypted content- Specified by:
setIsInEncryptedContentin interfaceDocumentContext
-
unsetIsInEncryptedContent
public void unsetIsInEncryptedContent(java.lang.Object key)
Description copied from interface:DocumentContextunset when we leave the encrypted content- Specified by:
unsetIsInEncryptedContentin interfaceDocumentContext
-
isInEncryptedContent
public boolean isInEncryptedContent()
- Specified by:
isInEncryptedContentin interfaceDocumentContext- Returns:
- true if we currently stay in encrypted content
-
setIsInSignedContent
public void setIsInSignedContent(int index, java.lang.Object key)Description copied from interface:DocumentContextIndicates if we currently stay in a signed content- Specified by:
setIsInSignedContentin interfaceDocumentContext
-
unsetIsInSignedContent
public void unsetIsInSignedContent(java.lang.Object key)
Description copied from interface:DocumentContextunset when we leave the signed content- Specified by:
unsetIsInSignedContentin interfaceDocumentContext
-
isInSignedContent
public boolean isInSignedContent()
- Specified by:
isInSignedContentin interfaceDocumentContext- Returns:
- true if we currently stay in signed content
-
getProtectionOrder
public java.util.List<XMLSecurityConstants.ContentType> getProtectionOrder()
- Specified by:
getProtectionOrderin interfaceDocumentContext
-
getContentTypeMap
public java.util.Map<java.lang.Integer,XMLSecurityConstants.ContentType> getContentTypeMap()
- Specified by:
getContentTypeMapin interfaceDocumentContext
-
setContentTypeMap
protected void setContentTypeMap(java.util.Map<java.lang.Integer,XMLSecurityConstants.ContentType> contentTypeMap)
-
clone
protected DocumentContextImpl clone() throws java.lang.CloneNotSupportedException
- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
-