@@ -82,7 +82,7 @@ public interface DefaultContext extends Context {
8282 * @param name Attribute's name.
8383 * @return Flash attribute.
8484 */
85- @ Override default @ Nonnull ValueNode flash (@ Nonnull String name ) {
85+ @ Override default @ Nonnull Value flash (@ Nonnull String name ) {
8686 return Value .create (this , name , flash ().get (name ));
8787 }
8888
@@ -114,12 +114,12 @@ public interface DefaultContext extends Context {
114114 return session ;
115115 }
116116
117- @ Override default @ Nonnull ValueNode cookie (@ Nonnull String name ) {
117+ @ Override default @ Nonnull Value cookie (@ Nonnull String name ) {
118118 String value = cookieMap ().get (name );
119119 return value == null ? Value .missing (name ) : Value .value (this , name , value );
120120 }
121121
122- @ Override @ Nonnull default ValueNode path (@ Nonnull String name ) {
122+ @ Override @ Nonnull default Value path (@ Nonnull String name ) {
123123 String value = pathMap ().get (name );
124124 return value == null
125125 ? new MissingValue (name )
@@ -158,7 +158,7 @@ public interface DefaultContext extends Context {
158158 return query ().toMultimap ();
159159 }
160160
161- @ Override @ Nonnull default ValueNode header (@ Nonnull String name ) {
161+ @ Override @ Nonnull default Value header (@ Nonnull String name ) {
162162 return header ().get (name );
163163 }
164164
@@ -171,7 +171,7 @@ public interface DefaultContext extends Context {
171171 }
172172
173173 @ Override default boolean accept (@ Nonnull MediaType contentType ) {
174- ValueNode accept = header (ACCEPT );
174+ Value accept = header (ACCEPT );
175175 return accept .isMissing () ? true : contentType .matches (accept .value ());
176176 }
177177
@@ -196,17 +196,17 @@ public interface DefaultContext extends Context {
196196 }
197197
198198 @ Override @ Nullable default MediaType getRequestType () {
199- ValueNode contentType = header ("Content-Type" );
199+ Value contentType = header ("Content-Type" );
200200 return contentType .isMissing () ? null : MediaType .valueOf (contentType .value ());
201201 }
202202
203203 @ Override @ Nonnull default MediaType getRequestType (MediaType defaults ) {
204- ValueNode contentType = header ("Content-Type" );
204+ Value contentType = header ("Content-Type" );
205205 return contentType .isMissing () ? defaults : MediaType .valueOf (contentType .value ());
206206 }
207207
208208 @ Override default long getRequestLength () {
209- ValueNode contentLength = header ("Content-Length" );
209+ Value contentLength = header ("Content-Length" );
210210 return contentLength .isMissing () ? -1 : contentLength .longValue ();
211211 }
212212
0 commit comments