Class ResourceJsonFormatGenerator
- java.lang.Object
-
- com.dtolabs.rundeck.core.resources.format.json.ResourceJsonFormatGenerator
-
- All Implemented Interfaces:
Describable
,ResourceFormatGenerator
public class ResourceJsonFormatGenerator extends java.lang.Object implements ResourceFormatGenerator, Describable
ResourceJsonFormatGenerator generates JSON format for nodes data
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Set<java.lang.String>
EXTENSIONS
static java.util.List<java.lang.String>
MIME_TYPES
static java.lang.String
SERVICE_PROVIDER_TYPE
-
Constructor Summary
Constructors Constructor Description ResourceJsonFormatGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateDocument(INodeSet nodeset, java.io.OutputStream stream)
generate formatted outputDescription
getDescription()
java.util.Set<java.lang.String>
getFileExtensions()
java.util.List<java.lang.String>
getMIMETypes()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.dtolabs.rundeck.core.resources.format.ResourceFormatGenerator
getPreferredFileExtension, getPreferredMimeType
-
-
-
-
Field Detail
-
SERVICE_PROVIDER_TYPE
public static final java.lang.String SERVICE_PROVIDER_TYPE
- See Also:
- Constant Field Values
-
EXTENSIONS
public static final java.util.Set<java.lang.String> EXTENSIONS
-
MIME_TYPES
public static final java.util.List<java.lang.String> MIME_TYPES
-
-
Method Detail
-
getDescription
public Description getDescription()
- Specified by:
getDescription
in interfaceDescribable
- Returns:
- the configuration description
-
getFileExtensions
public java.util.Set<java.lang.String> getFileExtensions()
- Specified by:
getFileExtensions
in interfaceResourceFormatGenerator
- Returns:
- the list of file extensions that this format generator can generate
-
getMIMETypes
public java.util.List<java.lang.String> getMIMETypes()
- Specified by:
getMIMETypes
in interfaceResourceFormatGenerator
- Returns:
- the list of MIME types that this format generator can generate. If more than one are returned, then the first value will be used by default if necessary.
-
generateDocument
public void generateDocument(INodeSet nodeset, java.io.OutputStream stream) throws ResourceFormatGeneratorException
Description copied from interface:ResourceFormatGenerator
generate formatted output- Specified by:
generateDocument
in interfaceResourceFormatGenerator
- Parameters:
nodeset
- nodesstream
- output stream- Throws:
ResourceFormatGeneratorException
- on format error
-
-