org.apache.xml.security.stax.impl
Class DocumentContextImpl

java.lang.Object
  extended by org.apache.xml.security.stax.impl.DocumentContextImpl
All Implemented Interfaces:
Cloneable, DocumentContext

public class DocumentContextImpl
extends Object
implements DocumentContext, Cloneable

A concrete DocumentContext Implementation

Version:
$Revision: 1399606 $ $Date: 2012-10-18 13:17:41 +0100 (Thu, 18 Oct 2012) $
Author:
$Author: giger $

Constructor Summary
DocumentContextImpl()
           
 
Method Summary
protected  DocumentContextImpl clone()
           
 String getBaseURI()
           
 Map<Integer,XMLSecurityConstants.ContentType> getContentTypeMap()
           
 String getEncoding()
           
 List<XMLSecurityConstants.ContentType> getProtectionOrder()
           
 boolean isInEncryptedContent()
           
 boolean isInSignedContent()
           
 void setBaseURI(String baseURI)
           
protected  void setContentTypeMap(Map<Integer,XMLSecurityConstants.ContentType> contentTypeMap)
           
 void setEncoding(String encoding)
           
 void setIsInEncryptedContent(int index, Object key)
          Indicates if we currently stay in an encrypted content
 void setIsInSignedContent(int index, Object key)
          Indicates if we currently stay in a signed content
 void unsetIsInEncryptedContent(Object key)
          unset when we leave the encrypted content
 void unsetIsInSignedContent(Object key)
          unset when we leave the signed content
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentContextImpl

public DocumentContextImpl()
Method Detail

getEncoding

public String getEncoding()
Specified by:
getEncoding in interface DocumentContext
Returns:
The Encoding of the document

setEncoding

public void setEncoding(String encoding)

getBaseURI

public String getBaseURI()
Specified by:
getBaseURI in interface DocumentContext
Returns:
The base URI of the document if known

setBaseURI

public void setBaseURI(String baseURI)

setIsInEncryptedContent

public void setIsInEncryptedContent(int index,
                                    Object key)
Description copied from interface: DocumentContext
Indicates if we currently stay in an encrypted content

Specified by:
setIsInEncryptedContent in interface DocumentContext

unsetIsInEncryptedContent

public void unsetIsInEncryptedContent(Object key)
Description copied from interface: DocumentContext
unset when we leave the encrypted content

Specified by:
unsetIsInEncryptedContent in interface DocumentContext

isInEncryptedContent

public boolean isInEncryptedContent()
Specified by:
isInEncryptedContent in interface DocumentContext
Returns:
true if we currently stay in encrypted content

setIsInSignedContent

public void setIsInSignedContent(int index,
                                 Object key)
Description copied from interface: DocumentContext
Indicates if we currently stay in a signed content

Specified by:
setIsInSignedContent in interface DocumentContext

unsetIsInSignedContent

public void unsetIsInSignedContent(Object key)
Description copied from interface: DocumentContext
unset when we leave the signed content

Specified by:
unsetIsInSignedContent in interface DocumentContext

isInSignedContent

public boolean isInSignedContent()
Specified by:
isInSignedContent in interface DocumentContext
Returns:
true if we currently stay in signed content

getProtectionOrder

public List<XMLSecurityConstants.ContentType> getProtectionOrder()
Specified by:
getProtectionOrder in interface DocumentContext

getContentTypeMap

public Map<Integer,XMLSecurityConstants.ContentType> getContentTypeMap()
Specified by:
getContentTypeMap in interface DocumentContext

setContentTypeMap

protected void setContentTypeMap(Map<Integer,XMLSecurityConstants.ContentType> contentTypeMap)

clone

protected DocumentContextImpl clone()
                             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.