com.atlassian.confluence.macro
Class MacroDefinitionRequestSerializer

java.lang.Object
  extended by com.atlassian.confluence.macro.MacroDefinitionRequestSerializer
All Implemented Interfaces:
MacroDefinitionSerializer

public class MacroDefinitionRequestSerializer
extends Object
implements MacroDefinitionSerializer

Serializes a MacroDefinition first into wiki markup and then base64 encodes the wiki markup.

This is allow us to transport a macro definition as a request parameter without worrying about namespacing or conflicts with other request parameters.

This is currently being used for requesting placeholder images from the server with macro parameters in place. As such we are not interested in the body of the macro definition - only its parameters. This serializer will ignore any body that is attached any MacroDefinition's passed in.


Constructor Summary
MacroDefinitionRequestSerializer(MacroDefinitionSerializer wikiMarkupSerializer)
           
 
Method Summary
 String serialize(MacroDefinition macroDefinition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroDefinitionRequestSerializer

public MacroDefinitionRequestSerializer(MacroDefinitionSerializer wikiMarkupSerializer)
Method Detail

serialize

public String serialize(MacroDefinition macroDefinition)
Specified by:
serialize in interface MacroDefinitionSerializer


Copyright © 2003-2012 Atlassian. All Rights Reserved.