public class PipeLineSession extends HashMap<String,Object> implements AutoCloseable
PipeLineSession
.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
static String |
API_PRINCIPAL_KEY |
static String |
correlationIdKey |
static String |
EXIT_CODE_CONTEXT_KEY |
static String |
EXIT_STATE_CONTEXT_KEY |
static String |
HTTP_REQUEST_KEY |
static String |
HTTP_RESPONSE_KEY |
static String |
messageIdKey |
static String |
originalMessageKey |
static String |
securityHandlerKey |
static String |
SERVLET_CONTEXT_KEY |
static String |
TS_RECEIVED_KEY |
static String |
TS_SENT_KEY |
Constructor and Description |
---|
PipeLineSession() |
PipeLineSession(int initialCapacity) |
PipeLineSession(int initialCapacity,
float loadFactor) |
PipeLineSession(Map<String,Object> t) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
get(String key,
boolean defaultValue)
Retrieves a
boolean value from the PipeLineSession |
double |
get(String key,
double defaultValue)
Retrieves a
double value from the PipeLineSession |
int |
get(String key,
int defaultValue)
Retrieves an
int value from the PipeLineSession |
long |
get(String key,
long defaultValue)
Retrieves a
long value from the PipeLineSession |
String |
get(String key,
String defaultValue)
Retrieves a
String value from the PipeLineSession |
Boolean |
getBoolean(String key)
Retrieves a
Boolean value from the PipeLineSession |
String |
getCorrelationId() |
Message |
getMessage(String key) |
String |
getMessageId() |
Principal |
getPrincipal() |
ISecurityHandler |
getSecurityHandler() |
Date |
getTsReceived() |
static Date |
getTsReceived(Map<String,Object> context) |
Date |
getTsSent() |
static Date |
getTsSent(Map<String,Object> context) |
boolean |
isScheduledForCloseOnExit(Message message) |
boolean |
isUserInRole(String role) |
void |
scheduleCloseOnSessionExit(AutoCloseable resource,
String requester) |
void |
scheduleCloseOnSessionExit(Message message,
String label) |
static void |
setListenerParameters(Map<String,Object> map,
String messageId,
String correlationId,
Date tsReceived,
Date tsSent)
Convenience method to set required parameters from listeners
|
void |
setSecurityHandler(ISecurityHandler handler) |
void |
unscheduleCloseOnSessionExit(Message message) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public static final String originalMessageKey
public static final String messageIdKey
public static final String correlationIdKey
public static final String TS_RECEIVED_KEY
public static final String TS_SENT_KEY
public static final String securityHandlerKey
public static final String HTTP_REQUEST_KEY
public static final String HTTP_RESPONSE_KEY
public static final String SERVLET_CONTEXT_KEY
public static final String API_PRINCIPAL_KEY
public static final String EXIT_STATE_CONTEXT_KEY
public static final String EXIT_CODE_CONTEXT_KEY
public PipeLineSession()
public PipeLineSession(int initialCapacity)
public PipeLineSession(int initialCapacity, float loadFactor)
public String getMessageId()
public String getCorrelationId()
public Date getTsReceived()
public Date getTsSent()
public static void setListenerParameters(Map<String,Object> map, String messageId, String correlationId, Date tsReceived, Date tsSent)
public void setSecurityHandler(ISecurityHandler handler)
public ISecurityHandler getSecurityHandler() throws org.apache.commons.lang3.NotImplementedException
org.apache.commons.lang3.NotImplementedException
public boolean isUserInRole(String role) throws org.apache.commons.lang3.NotImplementedException
org.apache.commons.lang3.NotImplementedException
public Principal getPrincipal() throws org.apache.commons.lang3.NotImplementedException
org.apache.commons.lang3.NotImplementedException
public String get(String key, String defaultValue)
String
value from the PipeLineSessionkey
- the referenced keydefaultValue
- the value to return when the key cannot be foundpublic boolean get(String key, boolean defaultValue)
boolean
value from the PipeLineSessionkey
- the referenced keydefaultValue
- the value to return when the key cannot be foundpublic Boolean getBoolean(String key)
Boolean
value from the PipeLineSessionkey
- the referenced keypublic int get(String key, int defaultValue)
int
value from the PipeLineSessionkey
- the referenced keydefaultValue
- the value to return when the key cannot be foundpublic long get(String key, long defaultValue)
long
value from the PipeLineSessionkey
- the referenced keydefaultValue
- the value to return when the key cannot be foundpublic double get(String key, double defaultValue)
double
value from the PipeLineSessionkey
- the referenced keydefaultValue
- the value to return when the key cannot be foundpublic void scheduleCloseOnSessionExit(AutoCloseable resource, String requester)
public boolean isScheduledForCloseOnExit(Message message)
public void unscheduleCloseOnSessionExit(Message message)
public void close()
close
in interface AutoCloseable
Copyright © 2023 Frank!Framework. All rights reserved.