From 0a506d453a6fd081988520a54435c62f563d2596 Mon Sep 17 00:00:00 2001 From: Todd Fredrich Date: Tue, 29 May 2012 09:28:24 -0600 Subject: [PATCH] Removed JSONP-related cruft in Parameters and Request. --- .../com/strategicgains/restexpress/Parameters.java | 3 +-- src/java/com/strategicgains/restexpress/Request.java | 10 ---------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/java/com/strategicgains/restexpress/Parameters.java b/src/java/com/strategicgains/restexpress/Parameters.java index 34483938..00e3cba5 100644 --- a/src/java/com/strategicgains/restexpress/Parameters.java +++ b/src/java/com/strategicgains/restexpress/Parameters.java @@ -28,12 +28,11 @@ public static final class Cache { public static final String MAX_AGE = "max.age"; } - + public static final class Query { public static final String METHOD_TUNNEL = "_method"; public static final String FORMAT = "format"; - public static final String JSONP_CALLBACK = "jsonp"; } private Parameters() diff --git a/src/java/com/strategicgains/restexpress/Request.java b/src/java/com/strategicgains/restexpress/Request.java index 6cb0727a..d3d10c92 100644 --- a/src/java/com/strategicgains/restexpress/Request.java +++ b/src/java/com/strategicgains/restexpress/Request.java @@ -406,16 +406,6 @@ public String getHost() { return HttpHeaders.getHost(httpRequest); } - - public String getJsonpHeader() - { - return getRawHeader(Parameters.Query.JSONP_CALLBACK); - } - - public boolean hasJsonpHeader() - { - return (getJsonpHeader() != null); - } /** * Get the protocol of the request. RESTExpress currently only supports 'http'