Пример #1
0
 public SgmlPage(WebResponse webResponse, IWebWindow webWindow):
     base(null)
 {
     webResponse_ = webResponse;
     enclosingWindow_ = webWindow;
     webClient_ = webWindow.WebClient;
 }
 private static String BuildMessage(WebResponse failingResponse)
 {
     int code = failingResponse.StatusCode;
     String msg = failingResponse.StatusMessage;
     URL url = failingResponse.WebRequest.Url;
     return code + " " + msg + " for " + url;
 }
Пример #3
0
 /// <summary>
 /// Wraps the provide response for the given request
 /// </summary>
 /// <param name="cachedResponse">the response from cache</param>
 /// <param name="currentRequest">the new request</param>
 public WebResponseFromCache(WebResponse cachedResponse, WebRequest currentRequest) :
     base(cachedResponse)
 {
     request_ = currentRequest;
 }
Пример #4
0
 /// <summary>
 /// Creates an instance.
 /// </summary>
 /// <param name="webResponse">the response from the server</param>
 /// <param name="enclosingWindow">the window that holds the page</param>
 public TextPage(WebResponse webResponse, IWebWindow enclosingWindow) :
     base(webResponse, enclosingWindow)
 {
 }
Пример #5
0
 /// <summary>
  /// Creates an instance.
 /// </summary>
 /// <param name="webResponse">the response from the server that contains the data required to create this page</param>
 /// <param name="enclosingWindow">the window that this page is being loaded into</param>
 public UnexpectedPage(WebResponse webResponse, IWebWindow enclosingWindow) :
     base(webResponse, enclosingWindow)
 {
 }
Пример #6
0
 /// <summary>
 /// Creates an instance.
 /// </summary>
 /// <param name="webResponse">the response from the server</param>
 /// <param name="enclosingWindow">the window that holds the page</param>
 public JavaScriptPage(WebResponse webResponse, IWebWindow enclosingWindow) :
     base(webResponse, enclosingWindow)
 {
 }
Пример #7
0
 /// <summary>
 /// Creates an instance.
 /// </summary>
 /// <param name="webResponse">the response from the server</param>
 /// <param name="enclosingWindow">the window that holds the page</param>
 public AbstractPage(WebResponse webResponse, IWebWindow enclosingWindow)
 {
     webResponse_ = webResponse;
     enclosingWindow_ = enclosingWindow;
 }
 /// <summary>
 /// Creates an instance.
 /// </summary>
 /// <param name="message">the message</param>
 /// <param name="failingResponse">the failing response</param>
 public FailingHttpStatusCodeException(String message, WebResponse failingResponse) :
     base(message)
 {
     response_ = failingResponse;
 }
 /**
  * Creates an instance.
  * @param failingResponse the failing response
  */
 public FailingHttpStatusCodeException(WebResponse failingResponse) :
     this(BuildMessage(failingResponse), failingResponse)
 {
 }