com.atlassian.mywork.client
Class ClientUtil

java.lang.Object
  extended by com.atlassian.mywork.client.ClientUtil

public class ClientUtil
extends java.lang.Object


Constructor Summary
ClientUtil()
           
 
Method Summary
static boolean credentialsRequired(com.atlassian.applinks.api.ApplicationLink host, com.atlassian.applinks.api.ApplicationId clientId)
           
static java.util.concurrent.ExecutorService newExecutorService(java.lang.String name, com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory)
          Create an ExecutorService with the following features: a bounded thread pool a bounded queue execution within the same ThreadLocal context as the submitter
static java.lang.String urlEncode(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientUtil

public ClientUtil()
Method Detail

urlEncode

public static java.lang.String urlEncode(java.lang.String value)

newExecutorService

public static java.util.concurrent.ExecutorService newExecutorService(java.lang.String name,
                                                                      com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory)
Create an ExecutorService with the following features:

Parameters:
name - the name to be given to members of the thread pool
threadLocalDelegateExecutorFactory - a ThreadLocalDelegateExecutorFactory used to wrap the created thread pool
Returns:
the new ExecutorService

credentialsRequired

public static boolean credentialsRequired(com.atlassian.applinks.api.ApplicationLink host,
                                          com.atlassian.applinks.api.ApplicationId clientId)


Copyright © 2012 Atlassian. All Rights Reserved.