コード例 #1
0
 protected AbstractWebApplicationService(string id, string originalUrl, string artifactId, HttpClient httpClient)
 {
     this.id = id;
     this.originalUrl = originalUrl;
     this.artifactId = artifactId;
     this.httpClient = httpClient;
 }
コード例 #2
0
 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;
 }
コード例 #4
0
        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);
        }
コード例 #5
0
 public SimpleWebApplicationServiceImpl(string id, HttpClient httpClient)
     : this(id, id, null, Response.ResponseType.REDIRECT, httpClient)
 {
     ;
 }
コード例 #6
0
        public Cas20ProxyHandler(HttpClient httpClient)
            : this(httpClient, new DefaultUniqueTicketIdGenerator())
        {
            this.httpClient = httpClient;

        }
コード例 #7
0
 public Cas20ProxyHandler(HttpClient httpClient, UniqueTicketIdGenerator uniqueTicketIdGenerator)
 {
     this.httpClient = httpClient;
     this.uniqueTicketIdGenerator = uniqueTicketIdGenerator;
 }