File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
services-api/src/main/java/io/scalecube/services Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 22
33import static io .scalecube .services .api .ServiceMessage .HEADER_QUALIFIER ;
44import static io .scalecube .services .api .ServiceMessage .HEADER_REQUEST_METHOD ;
5+ import static io .scalecube .services .api .ServiceMessage .HEADER_UPLOAD_FILENAME ;
56import static io .scalecube .services .auth .Principal .NULL_PRINCIPAL ;
67
78import io .scalecube .services .auth .Principal ;
@@ -159,6 +160,15 @@ public String requestQualifier() {
159160 return header (HEADER_QUALIFIER );
160161 }
161162
163+ /**
164+ * Returns upload filename from headers.
165+ *
166+ * @return upload filename, or {@code null} if not found
167+ */
168+ public String uploadFilename () {
169+ return header (HEADER_UPLOAD_FILENAME );
170+ }
171+
162172 /**
163173 * Returns principal object (authenticated entity) associated with the request.
164174 *
You can’t perform that action at this time.
0 commit comments