org.apache.synapse.rest
Class Resource

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

public class Resource
extends AbstractRESTProcessor
implements ManagedLifecycle


Field Summary
 
Fields inherited from class org.apache.synapse.rest.AbstractRESTProcessor
log, name
 
Constructor Summary
Resource()
           
 
Method Summary
 boolean addMethod(String method)
           
 void destroy()
          This method should implement the destroying of the implemented parts of the configuration.
 String getContentType()
           
 DispatcherHelper getDispatcherHelper()
           
 SequenceMediator getFaultSequence()
           
 String getFaultSequenceKey()
           
 SequenceMediator getInSequence()
           
 String getInSequenceKey()
           
 String[] getMethods()
           
protected  String getName()
           
 SequenceMediator getOutSequence()
           
 String getOutSequenceKey()
           
 int getProtocol()
           
 String getUserAgent()
           
 void init(SynapseEnvironment se)
          This method should implement the initialization of the implemented parts of the configuration.
 void setContentType(String contentType)
           
 void setDispatcherHelper(DispatcherHelper dispatcherHelper)
           
 void setFaultSequence(SequenceMediator faultSequence)
           
 void setFaultSequenceKey(String faultSequenceKey)
           
 void setInSequence(SequenceMediator inSequence)
           
 void setInSequenceKey(String inSequenceKey)
           
 void setOutSequence(SequenceMediator outSequence)
           
 void setOutSequenceKey(String outSequenceKey)
           
 void setProtocol(int protocol)
           
 void setUserAgent(String userAgent)
           
 
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

Resource

public Resource()
Method Detail

getName

protected String getName()

getInSequence

public SequenceMediator getInSequence()

setInSequence

public void setInSequence(SequenceMediator inSequence)

getOutSequence

public SequenceMediator getOutSequence()

setOutSequence

public void setOutSequence(SequenceMediator outSequence)

getInSequenceKey

public String getInSequenceKey()

setInSequenceKey

public void setInSequenceKey(String inSequenceKey)

getOutSequenceKey

public String getOutSequenceKey()

setOutSequenceKey

public void setOutSequenceKey(String outSequenceKey)

getFaultSequence

public SequenceMediator getFaultSequence()

setFaultSequence

public void setFaultSequence(SequenceMediator faultSequence)

getFaultSequenceKey

public String getFaultSequenceKey()

setFaultSequenceKey

public void setFaultSequenceKey(String faultSequenceKey)

addMethod

public boolean addMethod(String method)

getMethods

public String[] getMethods()

getDispatcherHelper

public DispatcherHelper getDispatcherHelper()

setDispatcherHelper

public void setDispatcherHelper(DispatcherHelper dispatcherHelper)

getContentType

public String getContentType()

setContentType

public void setContentType(String contentType)

getUserAgent

public String getUserAgent()

setUserAgent

public void setUserAgent(String userAgent)

getProtocol

public int getProtocol()

setProtocol

public void setProtocol(int protocol)

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.