Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

18
LINES

< > BotCompany Repo | #1029855 // ModifiedWebRequest

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2806L/17K).

sclass ModifiedWebRequest implements IWebRequest {
  IWebRequest originalRequest;
  // any non-null field will override original value
  S uri;
  SS params;
  SS headers;
  SS files;
  S cookie;
  
  *(IWebRequest *originalRequest) {}

  public S uri() { ret uri != null ? uri : originalRequest.uri(); }
  public SS params() { ret params != null ? params : originalRequest.params(); }
  public SS headers() { ret headers != null ? headers : originalRequest.headers(); }
  public SS files() { ret files != null ? files : originalRequest.files(); }
  public S cookie() { ret cookie != null ? cookie : originalRequest.cookie(); }
  public bool isHttps() { ret originalRequest.isHttps(); }
}

Author comment

Began life as a copy of #1028677

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029855
Snippet name: ModifiedWebRequest
Eternal ID of this version: #1029855/3
Text MD5: bcdc59415849aa1dc519dbbeb591899b
Transpilation MD5: b3ca94ef7fb02927cd6290531b170443
Author: stefan
Category: javax / web
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-14 01:43:45
Source code size: 704 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 215 / 462
Version history: 2 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)