Skip to content

Commit

Permalink
Removed JSONP-related cruft in Parameters and Request.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfredrich committed May 29, 2012
1 parent 47a624a commit 0a506d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
3 changes: 1 addition & 2 deletions src/java/com/strategicgains/restexpress/Parameters.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
10 changes: 0 additions & 10 deletions src/java/com/strategicgains/restexpress/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 0a506d4

Please sign in to comment.