-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathRequest.java
More file actions
72 lines (54 loc) · 1.48 KB
/
Copy pathRequest.java
File metadata and controls
72 lines (54 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package org.tinystruct.http;
import org.tinystruct.ApplicationException;
import org.tinystruct.data.FileEntity;
import java.util.List;
public interface Request<T, I> extends Protocol {
/**
* Returns the headers of this message.
*
* @return the headers of this message
*/
Headers headers();
/**
* Returns the {@link Method} of this {@link Request}.
*
* @return The {@link Method} of this {@link Request}
*/
Method method();
/**
* Set the {@link Method} of this {@link Request}.
*
* @param method method
* @return this {@link Request}
*/
Request<T, I> setMethod(Method method);
/**
* Returns the requested URI (or alternatively, path)
*
* @return The URI being requested
*/
String uri();
/**
* Set the requested URI (or alternatively, path)
*
* @param uri the URI being requested
* @return this request
*/
Request<T, I> setUri(String uri);
Session getSession(String id, boolean generate);
Session getSession();
String getParameter(String name);
/**
* Return the attachments if there are.
*
* @return list of {@link FileEntity}
* @throws ApplicationException if there are exceptions for attachments
*/
List<FileEntity> getAttachments() throws ApplicationException;
Cookie[] cookies();
String query();
String body();
boolean isSecure();
I stream();
String[] parameterNames();
}