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).

1  
sclass ModifiedWebRequest implements IWebRequest {
2  
  IWebRequest originalRequest;
3  
  // any non-null field will override original value
4  
  S uri;
5  
  SS params;
6  
  SS headers;
7  
  SS files;
8  
  S cookie;
9  
  
10  
  *(IWebRequest *originalRequest) {}
11  
12  
  public S uri() { ret uri != null ? uri : originalRequest.uri(); }
13  
  public SS params() { ret params != null ? params : originalRequest.params(); }
14  
  public SS headers() { ret headers != null ? headers : originalRequest.headers(); }
15  
  public SS files() { ret files != null ? files : originalRequest.files(); }
16  
  public S cookie() { ret cookie != null ? cookie : originalRequest.cookie(); }
17  
  public bool isHttps() { ret originalRequest.isHttps(); }
18  
}

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: 214 / 462
Version history: 2 change(s)
Referenced in: [show references]