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, wait
getEndpoint, getEndpointConfiguration
public final Message handleMessage(Message request)
EndpointAdapter
handleMessage
in interface EndpointAdapter
request
- the request message.protected abstract Message handleMessageInternal(Message message)
message
- public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
public void setBeanName(String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public 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–2017 ConSol Software GmbH. All rights reserved.