Skip to content

Commit 1c529c6

Browse files
committed
Minor Javadoc changes and fixes
1 parent 2d184d9 commit 1c529c6

File tree

8 files changed

+23
-19
lines changed

8 files changed

+23
-19
lines changed

aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/LambdaContainerHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public ResponseType proxy(RequestType request, Context context) {
136136

137137
/**
138138
* Returns the current container configuration object.
139-
* @return
139+
* @return The container configuration object
140140
*/
141141
public static ContainerConfig getContainerConfig() {
142142
return config;

aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/RequestReader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public abstract class RequestReader<RequestType, ContainerRequestType> {
6565
* @param request The incoming request object
6666
* @param securityContext A jax-rs SecurityContext object (@see com.amazonaws.serverless.proxy.internal.SecurityContextWriter)
6767
* @param lambdaContext The AWS Lambda context for the request
68+
* @param config The container configuration object. This is passed in by the LambdaContainerHandler.
6869
* @return A valid request object for the underlying container
6970
* @throws InvalidRequestEventException This exception is thrown if anything goes wrong during the creation of the request object
7071
*/

aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/model/ApiGatewayAuthorizerContext.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@
2121

2222
/**
2323
* Context object used for custom authorizers and Cognito User Pool authorizers.
24-
* <p>
25-
* Custom authorizers populate the <code>principalId</code> field. All other custom values
26-
* returned by the authorizer are accessible via the <code>getContextValue</code> method.
27-
* </p>
28-
* <p>
29-
* Cognito User Pool authorizers populate the <pre>claims</pre> object.
30-
* </p>
24+
*
25+
* Custom authorizers populate the <code>principalId</code> field. All other custom values
26+
* returned by the authorizer are accessible via the <code>getContextValue</code> method.
27+
*
28+
* Cognito User Pool authorizers populate the <code>claims</code> object.
3129
*/
3230
public class ApiGatewayAuthorizerContext {
3331

aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsHttpServletRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ protected Cookie[] parseCookieHeaderValue(String headerValue) {
259259
/**
260260
* Given a map of key/values query string parameters from API Gateway, creates a query string as it would have
261261
* been in the original url.
262-
* @param parameters A Map<String, String> of query string parameters
262+
* @param parameters A Map&lt;String, String&gt; of query string parameters
263263
* @return The generated query string for the URI
264264
*/
265265
protected String generateQueryString(Map<String, String> parameters) {

aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsLambdaServletContainerHandler.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222
import javax.servlet.ServletContext;
2323
import javax.servlet.ServletException;
24-
import javax.servlet.ServletRequest;
25-
import javax.servlet.ServletResponse;
2624
import javax.servlet.http.HttpServletRequest;
2725
import javax.servlet.http.HttpServletResponse;
2826
import java.io.IOException;
@@ -33,10 +31,10 @@
3331
* implementations that want to support the servlet 3.1 specs.
3432
*
3533
* Because Lambda only allows one event per container at a time, this object also acts as the <code>RequestDispatcher</code>
36-
* @param <RequestType>
37-
* @param <ResponseType>
38-
* @param <ContainerRequestType>
39-
* @param <ContainerResponseType>
34+
* @param <RequestType> The expected request object. This is the model class that the event JSON is de-serialized to
35+
* @param <ResponseType> The expected Lambda function response object. Responses from the container will be written to this model object
36+
* @param <ContainerRequestType> The request type for the wrapped Java container
37+
* @param <ContainerResponseType> The response or response writer type for the wrapped Java container
4038
*/
4139
public abstract class AwsLambdaServletContainerHandler<RequestType, ResponseType,
4240
ContainerRequestType extends HttpServletRequest,
@@ -174,6 +172,8 @@ protected void setServletContext(final ServletContext context) {
174172
* Applies the filter chain in the request lifecycle
175173
* @param request The Request object. This must be an implementation of HttpServletRequest
176174
* @param response The response object. This must be an implementation of HttpServletResponse
175+
* @throws IOException
176+
* @throws ServletException
177177
*/
178178
protected void doFilter(ContainerRequestType request, ContainerResponseType response) throws IOException, ServletException {
179179
FilterChainHolder chain = filterChainManager.getFilterChain(request);

aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/FilterHolder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public Registration getRegistration() {
130130

131131
/**
132132
* The name associated with the filter
133-
* @return
133+
* @return The name for the filter
134134
*/
135135
public String getFilterName() {
136136
return filterName;
@@ -144,7 +144,7 @@ public void setFilterName(String filterName) {
144144

145145
/**
146146
* The map of initialization parameters passed to the filter
147-
* @return
147+
* @return The Map of initialization parameters used for the filter
148148
*/
149149
public Map<String, String> getInitParameters() {
150150
return initParameters;
@@ -153,7 +153,7 @@ public Map<String, String> getInitParameters() {
153153

154154
/**
155155
* The servlet context that initialized the filter
156-
* @return
156+
* @return The servlet context the filter was initialized on
157157
*/
158158
public ServletContext getServletContext() {
159159
return servletContext;

aws-serverless-java-container-jersey/src/main/java/com/amazonaws/serverless/proxy/jersey/JerseyAwsProxyRequestReader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public class JerseyAwsProxyRequestReader extends RequestReader<AwsProxyRequest,
5959
* @param request The incoming request object
6060
* @param securityContext A jax-rs SecurityContext object (@see com.amazonaws.serverless.proxy.internal.SecurityContextWriter)
6161
* @param lambdaContext The AWS Lambda context for the request
62+
* @param config The container config object, this is passed in by the LambdaContainerHandler
6263
* @return A populated ContainerRequest object
6364
* @throws InvalidRequestEventException When the method fails to parse the incoming request
6465
*/

aws-serverless-java-container-jersey/src/main/java/com/amazonaws/serverless/proxy/jersey/JerseyLambdaContainerHandler.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ public static JerseyLambdaContainerHandler<AwsProxyRequest, AwsProxyResponse> ge
100100
/**
101101
* Private constructor for a LambdaContainer. Sets the application object, sets the ApplicationHandler,
102102
* and initializes the application using the <code>onStartup</code> method.
103-
* @param jaxRsApplication A Jersey application instance.
103+
* @param requestReader A request reader instance
104+
* @param responseWriter A response writer instance
105+
* @param securityContextWriter A security context writer object
106+
* @param exceptionHandler An exception handler
107+
* @param jaxRsApplication The JaxRs application
104108
*/
105109
public JerseyLambdaContainerHandler(RequestReader<RequestType, ContainerRequest> requestReader,
106110
ResponseWriter<JerseyResponseWriter, ResponseType> responseWriter,

0 commit comments

Comments
 (0)