public Map<String, Object> getRequestContext() { if (isThreadLocalRequestContext()) { final Thread t = Thread.currentThread(); if (!requestContext.containsKey(t)) { EchoContext freshRequestContext = new EchoContext(currentRequestContext); requestContext.put(t, freshRequestContext); } latestContextThread = t; return requestContext.get(t); } return currentRequestContext; } public Map<String, Object> getResponseContext() {
((ClientImpl.EchoContext)((WrappedMessageContext)requestContext).getWrappedMap()).reload(); assertTrue("address is different", !address.equals(requestContext .get(BindingProvider.ENDPOINT_ADDRESS_PROPERTY)));
((ClientImpl.EchoContext)((WrappedMessageContext)requestContext).getWrappedMap()).reload(); assertTrue("address is different", !address.equals(requestContext .get(BindingProvider.ENDPOINT_ADDRESS_PROPERTY)));
public Map<String, Object> getRequestContext() { if (isThreadLocalRequestContext()) { if (!requestContext.containsKey(Thread.currentThread())) { requestContext.put(Thread.currentThread(), new EchoContext(currentRequestContext)); } return requestContext.get(Thread.currentThread()); } return currentRequestContext; } public Map<String, Object> getResponseContext() {
public EchoContext(Map<String, Object> sharedMap) { super(8, 0.75f, 4); putAll(sharedMap); }
public Map<String, Object> getRequestContext() { if (isThreadLocalRequestContext()) { final Thread t = Thread.currentThread(); if (!requestContext.containsKey(t)) { EchoContext freshRequestContext = new EchoContext(currentRequestContext); requestContext.put(t, freshRequestContext); } latestContextThread = t; return requestContext.get(t); } return currentRequestContext; } public Map<String, Object> getResponseContext() {
public EchoContext(Map<String, Object> sharedMap) { super(8, 0.75f, 4); putAll(sharedMap); }
public Map<String, Object> getRequestContext() { if (isThreadLocalRequestContext()) { if (!requestContext.containsKey(Thread.currentThread())) { requestContext.put(Thread.currentThread(), new EchoContext(currentRequestContext)); } return requestContext.get(Thread.currentThread()); } return currentRequestContext; } public Map<String, Object> getResponseContext() {