org.apache.synapse.rest
Class API
java.lang.Object
org.apache.synapse.rest.AbstractRESTProcessor
org.apache.synapse.rest.API
- All Implemented Interfaces:
- ManagedLifecycle
public class API
- extends AbstractRESTProcessor
- implements ManagedLifecycle
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
API
public API(String name,
String context)
getName
public String getName()
getContext
public String getContext()
getHost
public String getHost()
setHost
public void setHost(String host)
getPort
public int getPort()
setPort
public void setPort(int port)
getFileName
public String getFileName()
setFileName
public void setFileName(String fileName)
addResource
public void addResource(Resource resource)
getResources
public Resource[] getResources()
addHandler
public void addHandler(Handler handler)
getHandlers
public Handler[] getHandlers()
init
public void init(SynapseEnvironment se)
- Description copied from interface:
ManagedLifecycle
- This method should implement the initialization of the
implemented parts of the configuration.
- Specified by:
init
in interface ManagedLifecycle
- Parameters:
se
- SynapseEnvironment to be used for initialization
destroy
public void destroy()
- Description copied from interface:
ManagedLifecycle
- This method should implement the destroying of the
implemented parts of the configuration.
- Specified by:
destroy
in interface ManagedLifecycle
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.