public class API extends AbstractRESTProcessor implements ManagedLifecycle, AspectConfigurable, SynapseArtifact
log, name
Modifier and Type | Method and Description |
---|---|
void |
addHandler(Handler handler) |
void |
addResource(Resource resource) |
void |
configure(AspectConfiguration aspectConfiguration)
Configure aspects according to the given configuration
|
void |
destroy()
This method should implement the destroying of the
implemented parts of the configuration.
|
String |
getAPIName() |
String |
getArtifactContainerName() |
AspectConfiguration |
getAspectConfiguration()
Get the aspects configuration
|
List<String> |
getCommentsList() |
String |
getContext() |
String |
getDescription()
Retrieves the description of the artifact
|
String |
getFileName() |
Handler[] |
getHandlers() |
String |
getHost() |
String |
getName()
Get the fully qualified name of this API
|
int |
getPort() |
int |
getProtocol() |
Resource |
getResource(String resourceName) |
Resource[] |
getResources() |
String |
getSwaggerResourcePath() |
String |
getVersion() |
VersionStrategy |
getVersionStrategy() |
void |
init(SynapseEnvironment se)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
isEdited() |
void |
setArtifactContainerName(String name) |
void |
setCommentsList(List<String> commentsList) |
void |
setComponentStatisticsId(ArtifactHolder holder) |
void |
setContext(String context) |
void |
setDescription(String description)
Set the description of the artifact
|
void |
setFileName(String fileName) |
void |
setHost(String host) |
void |
setIsEdited(boolean isEdited) |
void |
setLogSetterValue() |
void |
setPort(int port) |
void |
setProtocol(int protocol) |
void |
setSwaggerResourcePath(String swaggerResourcePath) |
void |
setVersionStrategy(VersionStrategy versionStrategy) |
handleException, handleException
public void setContext(String context)
public void setArtifactContainerName(String name)
public String getArtifactContainerName()
public boolean isEdited()
public void setIsEdited(boolean isEdited)
public void setLogSetterValue()
public String getName()
public int getProtocol()
public void setProtocol(int protocol)
public String getAPIName()
public String getVersion()
public String getContext()
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public String getFileName()
public void setFileName(String fileName)
public String getSwaggerResourcePath()
public void setSwaggerResourcePath(String swaggerResourcePath)
public void addResource(Resource resource)
public Resource[] getResources()
public void addHandler(Handler handler)
public Handler[] getHandlers()
public void init(SynapseEnvironment se)
ManagedLifecycle
init
in interface ManagedLifecycle
se
- SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycle
destroy
in interface ManagedLifecycle
public VersionStrategy getVersionStrategy()
public void setVersionStrategy(VersionStrategy versionStrategy)
public void configure(AspectConfiguration aspectConfiguration)
AspectConfigurable
configure
in interface AspectConfigurable
aspectConfiguration
- AspectConfiguration instancepublic AspectConfiguration getAspectConfiguration()
AspectConfigurable
getAspectConfiguration
in interface AspectConfigurable
public void setComponentStatisticsId(ArtifactHolder holder)
public void setDescription(String description)
SynapseArtifact
setDescription
in interface SynapseArtifact
description
- tobe set to the artifactpublic String getDescription()
SynapseArtifact
getDescription
in interface SynapseArtifact
Copyright © 2005–2023 Apache Software Foundation. All rights reserved.