public class InformationProcessor extends Object
Constructor and Description |
---|
InformationProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the information processor.
|
String |
getName()
This method returns the name of the information processor.
|
Map<String,TypeProcessor> |
getTypeProcessors()
The map of types to processors.
|
String |
getVersion()
This method returns the version of the information processor.
|
void |
init()
Initialize the information processor.
|
boolean |
isSupported(String type)
This method determines whether the specified type
is handled by the information processor.
|
String |
process(String type,
Object info,
Map<String,Object> headers,
ActivityType actType)
This method processes supplied information to
extract relevant details, and then return an
appropriate representation of that information
for public distribution.
|
void |
setName(String name)
This method sets the name of the information processor.
|
void |
setVersion(String version)
This method sets the version of the information processor.
|
public String getName()
public void setName(String name)
name
- The namepublic String getVersion()
public void setVersion(String version)
version
- The versionpublic Map<String,TypeProcessor> getTypeProcessors()
public void init() throws Exception
Exception
- Failed to initializepublic boolean isSupported(String type)
type
- The typepublic String process(String type, Object info, Map<String,Object> headers, ActivityType actType)
type
- The information typeinfo
- The information to be processedheaders
- The optional header informationactType
- The activity type to be annotated with
details extracted from the informationCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.