package com.perforce.workspace.tjuricek.p4oauth.jetty; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * The information passed into one of our registered method handlers. */ public class MethodParams { HttpServletRequest request; HttpServletResponse response; public MethodParams() { } public MethodParams(HttpServletRequest request, HttpServletResponse response) { this(); this.request = request; this.response = response; } public HttpServletRequest getRequest() { return request; } public void setRequest(HttpServletRequest request) { this.request = request; } public HttpServletResponse getResponse() { return response; } public void setResponse(HttpServletResponse response) { this.response = response; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MethodParams that = (MethodParams) o; if (request != null ? !request.equals(that.request) : that.request != null) return false; if (response != null ? !response.equals(that.response) : that.response != null) return false; return true; } @Override public int hashCode() { int result = request != null ? request.hashCode() : 0; result = 31 * result + (response != null ? response.hashCode() : 0); return result; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 9095 | tjuricek | Added some basic test data and renamed "workspace" to "workshop" in package name | ||
#1 | 9089 | tjuricek |
Moving some code that worked via some manual validation to the workshop. This just implements a basic code authorization grant scheme. Automated tests are forthcoming, awating some gradle plugin work that should sit outside of this project. |