Class FrankApiService
java.lang.Object
org.frankframework.console.controllers.FrankApiService
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
@Service
public class FrankApiService
extends Object
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
protected final boolean
org.springframework.http.ResponseEntity
<?> org.springframework.http.ResponseEntity
<?> org.springframework.http.ResponseEntity
<?> callSyncGateway
(RequestMessageBuilder input, boolean preFillCache) Overload of the normal callSyncGateway but can `prefill` the cache (for WebSockets).protected final OutboundGateway
protected <T> T
getProperty
(String key, T defaultValue) Get a property from the Spring Environment.protected org.springframework.messaging.Message
<?> final void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
FrankApiService
-
-
Method Details
-
getGateway
-
sendSyncMessage
@Nonnull protected org.springframework.messaging.Message<?> sendSyncMessage(RequestMessageBuilder input) -
callSyncGateway
public org.springframework.http.ResponseEntity<?> callSyncGateway(RequestMessageBuilder input) throws ApiException - Throws:
ApiException
-
callSyncGateway
public org.springframework.http.ResponseEntity<?> callSyncGateway(RequestMessageBuilder input, boolean preFillCache) throws ApiException Overload of the normal callSyncGateway but can `prefill` the cache (for WebSockets). The response message must be an instance of String else it won't be cached.- Throws:
ApiException
-
callAsyncGateway
-
setApplicationContext
public final void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
public final void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
getProperty
Get a property from the Spring Environment. -
allowDeprecatedEndpoints
protected final boolean allowDeprecatedEndpoints()
-