public class API extends AbstractRESTProcessor implements ManagedLifecycle, AspectConfigurable
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
|
String |
getContext() |
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 |
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 |
setComponentStatisticsId(ArtifactHolder holder) |
void |
setContext(String context) |
void |
setFileName(String fileName) |
void |
setHost(String host) |
void |
setIsEdited(boolean isEdited) |
void |
setLogSetterValue() |
void |
setPort(int port) |
void |
setProtocol(int protocol) |
void |
setVersionStrategy(VersionStrategy versionStrategy) |
handleException, handleExceptionpublic 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 void addResource(Resource resource)
public Resource[] getResources()
public void addHandler(Handler handler)
public Handler[] getHandlers()
public void init(SynapseEnvironment se)
ManagedLifecycleinit in interface ManagedLifecyclese - SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycledestroy in interface ManagedLifecyclepublic VersionStrategy getVersionStrategy()
public void setVersionStrategy(VersionStrategy versionStrategy)
public void configure(AspectConfiguration aspectConfiguration)
AspectConfigurableconfigure in interface AspectConfigurableaspectConfiguration - AspectConfiguration instancepublic AspectConfiguration getAspectConfiguration()
AspectConfigurablegetAspectConfiguration in interface AspectConfigurablepublic void setComponentStatisticsId(ArtifactHolder holder)
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.