protected AbstractWebApplicationService(string id, string originalUrl, string artifactId, HttpClient httpClient)
 {
     this.id = id;
     this.originalUrl = originalUrl;
     this.artifactId = artifactId;
     this.httpClient = httpClient;
 }
 private SimpleWebApplicationServiceImpl(string id,
                                         string originalUrl, string artifactId,
                                         Response.ResponseType responseType, HttpClient httpClient)
     : base(id, originalUrl, artifactId, httpClient)
 {
     ;
     this.responseType = responseType;
 }
 public void setHttpClient(HttpClient httpClient)
 {
     this.httpClient = httpClient;
 }
        public static SimpleWebApplicationServiceImpl createServiceFrom(
            HttpRequest request, HttpClient httpClient)
        {
            string targetService = request.Params[CONST_PARAM_TARGET_SERVICE];
            string method = request.Params[CONST_PARAM_METHOD];
            string serviceToUse = !string.IsNullOrEmpty(targetService)
                                      ? targetService : request.Params[CONST_PARAM_SERVICE];

            if (!string.IsNullOrEmpty(serviceToUse))
            {
                return null;
            }

            string id = cleanupUrl(serviceToUse);
            string artifactId = request.Params[CONST_PARAM_TICKET];

            return new SimpleWebApplicationServiceImpl(id, serviceToUse,
                                                       artifactId, "POST".Equals(method)
                                                       ? Response.ResponseType.POST
                                                                       : Response.ResponseType.REDIRECT, httpClient);
        }
 public SimpleWebApplicationServiceImpl(string id, HttpClient httpClient)
     : this(id, id, null, Response.ResponseType.REDIRECT, httpClient)
 {
     ;
 }
Esempio n. 6
0
        public Cas20ProxyHandler(HttpClient httpClient)
            : this(httpClient, new DefaultUniqueTicketIdGenerator())
        {
            this.httpClient = httpClient;

        }
Esempio n. 7
0
 public Cas20ProxyHandler(HttpClient httpClient, UniqueTicketIdGenerator uniqueTicketIdGenerator)
 {
     this.httpClient = httpClient;
     this.uniqueTicketIdGenerator = uniqueTicketIdGenerator;
 }