java.lang.Object | |
↳ | com.atlassian.confluence.content.render.xhtml.DefaultConversionContext |
A non-thread safe implementation of the ConversionContext suitable for use in the single threaded XHTML output process.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check the timeout and throw an XhtmlTimeoutException if the timeout is expired.
| |||||||||||
If multiple items are being converted in this 'context' then the complete tree of ContentNodes will be retrieved
via this method.
| |||||||||||
Get the current ContentEntityObject for this context.
| |||||||||||
This method should be considered almost deprecated. | |||||||||||
Return a property from the context.
| |||||||||||
Returns the property for this key as a String.
| |||||||||||
This method is deprecated.
Used
getPageContext() instead.
| |||||||||||
The spacekey for the current context if applicable or null otherwise.
| |||||||||||
The Timeout object for this Conversion.
| |||||||||||
Returns true if the property with the specified key has been set.
| |||||||||||
Removes the property references by the key from the conversion context and returns it.
| |||||||||||
Sets the property specified by name in the conversion context.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.content.render.xhtml.ConversionContext
|
Check the timeout and throw an XhtmlTimeoutException if the timeout is expired.
Use getTimeout()
and isExpired()
to check the timeout without
throwing an exception.
XhtmlTimeoutException |
---|
If multiple items are being converted in this 'context' then the complete tree of ContentNodes will be retrieved via this method. If only a single item is being converted in the context then a ContentTree containing a single ContentNode will be returned.
Get the current ContentEntityObject for this context.
This method should be considered almost deprecated.
At the moment a ConversionContext implementation will always be wrapping at least a RenderContext
and as long as this is actually a PageContext
then it will be returned by this method.
However, at some point in the future ConversionContext will be decoupled from the old v2 RenderContext
and this method will be removed.
Return a property from the context.
name | of the property. See ConversionContextPropertyName for common names. |
---|
Returns the property for this key as a String. toString() will be called if this is not the java.lang.String class. null will be returned if this property does not exist.
name | The key for the property |
---|
The spacekey for the current context if applicable or null otherwise.
The Timeout object for this Conversion. This can be checked to see if conversion should be
terminated using isExpired()
, or how much longer conversion should be allowed to
run using getTime()
, getUnit()
.
Returns true if the property with the specified key has been set.
name | The name of the property |
---|
Removes the property references by the key from the conversion context and returns it.
name | The unique key of the property. See ConversionContextPropertyName for common names. |
---|
Sets the property specified by name in the conversion context.
name | A unique key for this property. See ConversionContextPropertyName for common names. |
---|---|
value | The value of the property. |