public abstract class AbstractEndpointAdapter extends Object implements EndpointAdapter, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log
Logger
|
| Constructor and Description |
|---|
AbstractEndpointAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
EndpointAdapter |
getFallbackEndpointAdapter()
Gets the fallback endpoint adapter.
|
String |
getName()
Gets this endpoint adapter's name - usually injected as Spring bean name.
|
protected TestContext |
getTestContext()
Gets new test context from factory.
|
TestContextFactory |
getTestContextFactory()
Gets the test context factory.
|
Message |
handleMessage(Message request)
Handles a request message and returning a proper response.
|
protected abstract Message |
handleMessageInternal(Message message)
Subclasses must implement this method in order to handle incoming request message.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanName(String name) |
void |
setFallbackEndpointAdapter(EndpointAdapter fallbackEndpointAdapter)
Sets the fallback endpoint adapter.
|
void |
setTestContextFactory(TestContextFactory testContextFactory)
Sets the test context factory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEndpoint, getEndpointConfigurationpublic final Message handleMessage(Message request)
EndpointAdapterhandleMessage in interface EndpointAdapterrequest - the request message.protected abstract Message handleMessageInternal(Message message)
message - public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic String getName()
public EndpointAdapter getFallbackEndpointAdapter()
public void setFallbackEndpointAdapter(EndpointAdapter fallbackEndpointAdapter)
fallbackEndpointAdapter - public void setTestContextFactory(TestContextFactory testContextFactory)
testContextFactory - public TestContextFactory getTestContextFactory()
protected TestContext getTestContext()
Copyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.