org.apache.synapse.rest
Class API

java.lang.Object
  extended by org.apache.synapse.rest.AbstractRESTProcessor
      extended by org.apache.synapse.rest.API
All Implemented Interfaces:
ManagedLifecycle

public class API
extends AbstractRESTProcessor
implements ManagedLifecycle


Field Summary
 
Fields inherited from class org.apache.synapse.rest.AbstractRESTProcessor
log, name
 
Constructor Summary
API(String name, String context)
           
 
Method Summary
 void addHandler(Handler handler)
           
 void addResource(Resource resource)
           
 void destroy()
          This method should implement the destroying of the implemented parts of the configuration.
 String getContext()
           
 String getFileName()
           
 Handler[] getHandlers()
           
 String getHost()
           
 String getName()
           
 int getPort()
           
 Resource[] getResources()
           
 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)
           
 
Methods inherited from class org.apache.synapse.rest.AbstractRESTProcessor
handleException, handleException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

API

public API(String name,
           String context)
Method Detail

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.