public class API extends AbstractRESTProcessor implements ManagedLifecycle
log, name
Modifier and Type | Method and Description |
---|---|
void |
addHandler(Handler handler) |
void |
addResource(Resource resource) |
void |
destroy()
This method should implement the destroying of the
implemented parts of the configuration.
|
String |
getAPIName() |
String |
getContext() |
String |
getFileName() |
Handler[] |
getHandlers() |
String |
getHost() |
String |
getName()
Get the full qualified name of this API
|
int |
getPort() |
int |
getProtocol() |
Resource[] |
getResources() |
String |
getVersion() |
VersionStrategy |
getVersionStrategy() |
void |
init(SynapseEnvironment se)
This method should implement the initialization of the
implemented parts of the configuration.
|
void |
setFileName(String fileName) |
void |
setHost(String host) |
void |
setPort(int port) |
void |
setProtocol(int protocol) |
void |
setVersionStrategy(VersionStrategy versionStrategy) |
handleException, handleException
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)
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)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.