protected WebClient(URI baseURI) { this(new LocalClientState(baseURI)); }
protected WebClient(URI baseURI) { this(new LocalClientState(baseURI)); }
protected WebClient(URI baseURI) { this(new LocalClientState(baseURI)); }
public ThreadLocalClientState(String baseURI, long timeToKeepState) { this.initialState = new LocalClientState(URI.create(baseURI)); this.timeToKeepState = timeToKeepState; }
public ThreadLocalClientState(String baseURI) { this.initialState = new LocalClientState(URI.create(baseURI)); }
public ThreadLocalClientState(String baseURI) { this.initialState = new LocalClientState(URI.create(baseURI)); }
public ThreadLocalClientState(String baseURI, long timeToKeepState) { this.initialState = new LocalClientState(URI.create(baseURI)); this.timeToKeepState = timeToKeepState; }
public ThreadLocalClientState(String baseURI) { this.initialState = new LocalClientState(URI.create(baseURI)); }
public ThreadLocalClientState(String baseURI, long timeToKeepState) { this.initialState = new LocalClientState(URI.create(baseURI)); this.timeToKeepState = timeToKeepState; }
public ClientProxyImpl(ClientState initialState, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, Object... varValues) { super(initialState); this.proxyLoader = loader; this.cri = cri; this.isRoot = isRoot; this.inheritHeaders = inheritHeaders; initValuesMap(varValues); }
protected ClientState getState() { LocalClientState cs = state.get(Thread.currentThread()); if (cs == null) { cs = new LocalClientState(initialState); state.put(Thread.currentThread(), cs); if (timeToKeepState > 0) { prepareCheckpointMap(); long currentTime = System.currentTimeMillis(); checkpointMap.put(Thread.currentThread(), currentTime); Thread clThread = new CleanupThread(Thread.currentThread(), currentTime); clThread.setName("Client state cleanup thread " + clThread.hashCode()); clThread.start(); } } return cs; }
protected ClientState getState() { LocalClientState cs = state.get(Thread.currentThread()); if (cs == null) { cs = new LocalClientState(initialState); state.put(Thread.currentThread(), cs); if (timeToKeepState > 0) { prepareCheckpointMap(); long currentTime = System.currentTimeMillis(); checkpointMap.put(Thread.currentThread(), currentTime); Thread clThread = new CleanupThread(Thread.currentThread(), currentTime); clThread.setName("Client state cleanup thread " + clThread.hashCode()); clThread.start(); } } return cs; }
protected ClientState getState() { LocalClientState cs = state.get(Thread.currentThread()); if (cs == null) { cs = new LocalClientState(initialState); state.put(Thread.currentThread(), cs); if (timeToKeepState > 0) { prepareCheckpointMap(); long currentTime = System.currentTimeMillis(); checkpointMap.put(Thread.currentThread(), currentTime); new CleanupThread(Thread.currentThread(), currentTime).start(); } } return cs; }
public MicroProfileClientProxyImpl(URI baseURI, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, ExecutorService executorService, Configuration configuration, CDIInterceptorWrapper interceptorWrapper, Object... varValues) { super(new LocalClientState(baseURI), loader, cri, isRoot, inheritHeaders, varValues); cfg.getRequestContext().put(EXECUTOR_SERVICE_PROPERTY, executorService); cfg.getRequestContext().putAll(configuration.getProperties()); this.interceptorWrapper = interceptorWrapper; }
public MicroProfileClientProxyImpl(URI baseURI, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, ExecutorService executorService, Configuration configuration, CDIInterceptorWrapper interceptorWrapper, Object... varValues) { super(new LocalClientState(baseURI), loader, cri, isRoot, inheritHeaders, varValues); cfg.getRequestContext().put(EXECUTOR_SERVICE_PROPERTY, executorService); cfg.getRequestContext().putAll(configuration.getProperties()); this.interceptorWrapper = interceptorWrapper; }
public ClientProxyImpl(ClientState initialState, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, Object... varValues) { super(initialState); this.proxyLoader = loader; this.cri = cri; this.isRoot = isRoot; this.inheritHeaders = inheritHeaders; initValuesMap(varValues); cfg.getInInterceptors().add(new ClientAsyncResponseInterceptor()); }
public ClientProxyImpl(ClientState initialState, ClassLoader loader, ClassResourceInfo cri, boolean isRoot, boolean inheritHeaders, Object... varValues) { super(initialState); this.proxyLoader = loader; this.cri = cri; this.isRoot = isRoot; this.inheritHeaders = inheritHeaders; initValuesMap(varValues); cfg.getInInterceptors().add(new ClientAsyncResponseInterceptor()); }
public ClientState newState(URI currentURI, MultivaluedMap<String, String> headers, MultivaluedMap<String, String> templatesMap) { ClientState state = null; if (isSupportedScheme(currentURI)) { state = new LocalClientState(currentURI); } else { state = new LocalClientState(baseURI, currentURI); } if (headers != null) { state.setRequestHeaders(headers); } // we need to carry the template parameters forward MultivaluedMap<String, String> newTemplateParams = templates; if (newTemplateParams != null && templatesMap != null) { newTemplateParams.putAll(templatesMap); } else { newTemplateParams = templatesMap; } state.setTemplates(newTemplateParams); return state; }
public ClientState newState(URI currentURI, MultivaluedMap<String, String> headers, MultivaluedMap<String, String> templatesMap) { ClientState state = null; if (isSupportedScheme(currentURI)) { state = new LocalClientState(currentURI); } else { state = new LocalClientState(baseURI, currentURI); } if (headers != null) { state.setRequestHeaders(headers); } // we need to carry the template parameters forward MultivaluedMap<String, String> newTemplateParams = templates; if (newTemplateParams != null && templatesMap != null) { newTemplateParams.putAll(templatesMap); } else { newTemplateParams = templatesMap; } state.setTemplates(newTemplateParams); return state; }
public ClientState newState(URI currentURI, MultivaluedMap<String, String> headers, MultivaluedMap<String, String> templatesMap) { ClientState state = null; if (isHttpScheme(currentURI)) { state = new LocalClientState(currentURI); } else { state = new LocalClientState(baseURI, currentURI); } if (headers != null) { state.setRequestHeaders(headers); } // we need to carry the template parameters forward MultivaluedMap<String, String> newTemplateParams = templates; if (newTemplateParams != null && templatesMap != null) { newTemplateParams.putAll(templatesMap); } else { newTemplateParams = templatesMap; } state.setTemplates(newTemplateParams); return state; }