View Javadoc
1   package com.atlassian.sal.api.net;
2   
3   /**
4    * Factory to create {@link TrustedRequest}s. Requests are used to make network calls, using Trusted Apps authentication.
5    * <p>
6    * The rest plugin provides the default implementation for this interface.
7    *
8    * @param <T> The type of request to create
9    * @since 3.0.0
10   **/
11  public interface TrustedRequestFactory<T extends TrustedRequest> extends RequestFactory {
12      /**
13       * Creates a request of given {@link com.atlassian.sal.api.net.Request.MethodType} to given url.
14       * Wraps the request in Trusted Apps authentication.
15       */
16      T createTrustedRequest(final Request.MethodType methodType, final String url);
17  }