File tree Expand file tree Collapse file tree
jooby/src/main/java/io/jooby Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -600,13 +600,6 @@ public interface Context extends Registry {
600600 */
601601 @ Nonnull Multipart multipart ();
602602
603- /**
604- * Whether request content type is set to <code>application/x-www-form-urlencoded</code> or
605- * <code>multipart/*</code>
606- * @return
607- */
608- boolean isForm ();
609-
610603 /**
611604 * Get a multipart field that matches the given name.
612605 *
Original file line number Diff line number Diff line change @@ -93,17 +93,6 @@ public interface DefaultContext extends Context {
9393 .create (this , new Cookie (getRouter ().getFlashCookie ()).setHttpOnly (true )));
9494 }
9595
96- @ Override default boolean isForm () {
97- String contentType = header ("Content-Type" ).value ("" );
98- if (contentType .equalsIgnoreCase (MediaType .FORM_URLENCODED )) {
99- return true ;
100- }
101- if (contentType .toLowerCase ().startsWith (MediaType .MULTIPART_FORMDATA )) {
102- return true ;
103- }
104- return false ;
105- }
106-
10796 /**
10897 * Get a flash attribute.
10998 *
Original file line number Diff line number Diff line change @@ -201,10 +201,6 @@ public ForwardingContext(@Nonnull Context context) {
201201 return ctx .getRequestType (defaults );
202202 }
203203
204- @ Override public boolean isForm () {
205- return ctx .isForm ();
206- }
207-
208204 @ Override public long getRequestLength () {
209205 return ctx .getRequestLength ();
210206 }
You can’t perform that action at this time.
0 commit comments