Exemplo n.º 1
0
 public Capability(UUID capabilityID, UUID sessionID, BaseStreamHandler httpHandler, bool clientCertRequired, object state)
 {
     CapabilityID = capabilityID;
     SessionID = sessionID;
     HttpHandler = httpHandler;
     ClientCertRequired = clientCertRequired;
     State = state;
 }
 public WifiRootHandler(BaseStreamHandler defaultHandler)
     : base("GET", "/")
 {
     m_DefaultHandler = defaultHandler;
 }
Exemplo n.º 3
0
        public static Uri CreateCapability(UUID sessionID, BaseStreamHandler httpHandler, bool clientCertRequired, object state)
        {
            UUID capID = UUID.Random();

            Capabilities.AddOrUpdate(
                capID,
                new Capability(capID, sessionID, httpHandler, clientCertRequired, state),
                TimeSpan.FromHours(CAPABILITY_TIMEOUT_MINUTES));

            return new Uri(ServiceUrl, CABLE_BEACH_CAPS_PATH + capID.ToString());
        }
Exemplo n.º 4
0
 public TrustedStreamHandler(string httpMethod, string path, BaseStreamHandler proxiedHandler) :
     base(httpMethod, path)
 {
     m_proxiedHandler = proxiedHandler;
 }