Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import javax.ws.rs.core.SecurityContext;

/**
* Default impolementation of <code>SecurityContextWriter</code>. Creates a SecurityContext object based on an API Gateway
* Default implementation of <code>SecurityContextWriter</code>. Creates a SecurityContext object based on an API Gateway
* event and the Lambda context. This returns the default <code>AwsProxySecurityContext</code> instance.
*/
public class AwsProxySecurityContextWriter implements SecurityContextWriter<AwsProxyRequest> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* handled by the client applications directly within the container and a valid HTTP response is expected. This handler
* is used for exceptions thrown by the library while marshalling and unmarshalling requests and responses.
*
* The interface delcares two methods. A typed <code>handle</code> method for requests that are being proxied using a
* The interface declares two methods. A typed <code>handle</code> method for requests that are being proxied using a
* request and response type <code>LambdaContainerHandler</code>, and a stream-based
* <code>handle</code> method for <a href="http://docs.aws.amazon.com/lambda/latest/dg/java-handler-io-type-stream.html" target="_blank">
* Lambda's <code>RequestStreamHandler</code></a>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* object that supports requests for the AWS_PROXY integration.
*
* @param <RequestType> The type for the AWS Lambda event
* @param <ContainerRequestType> The type for the undelying container request object
* @param <ContainerRequestType> The type for the underlying container request object
*/
public abstract class RequestReader<RequestType, ContainerRequestType> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* or a <code>ResponseReader</code> implementation. For example, the Jersey library passes the response reader object to
* the default implementation of this class.
*
* @param <ContainerResponseType> The response object expceted from the underlying container
* @param <ContainerResponseType> The response object expected from the underlying container
* @param <ResponseType> The type for the Lambda function return value
*/
public abstract class ResponseWriter<ContainerResponseType, ResponseType> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public abstract class AwsHttpServletRequest implements HttpServletRequest {
//-------------------------------------------------------------

/**
* Protected constructors for implemnenting classes. This should be called first with the context received from
* Protected constructors for implementing classes. This should be called first with the context received from
* AWS Lambda
* @param lambdaContext The Lambda function context. This object is used for utility methods such as log
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public Object getAttribute(String name) {
@Override
@Deprecated
public Object getValue(String name) {
throw new UnsupportedOperationException("Session values are deprecated and not suported");
throw new UnsupportedOperationException("Session values are deprecated and not supported");
}

@Override
Expand All @@ -103,7 +103,7 @@ public Enumeration<String> getAttributeNames() {
@Override
@Deprecated
public String[] getValueNames() {
throw new UnsupportedOperationException("Session values are deprecated and not suported");
throw new UnsupportedOperationException("Session values are deprecated and not supported");
}

@Override
Expand All @@ -115,7 +115,7 @@ public void setAttribute(String name, Object value) {
@Override
@Deprecated
public void putValue(String name, Object value) {
throw new UnsupportedOperationException("Session values are deprecated and not suported");
throw new UnsupportedOperationException("Session values are deprecated and not supported");
}

@Override
Expand All @@ -127,7 +127,7 @@ public void removeAttribute(String name) {
@Override
@Deprecated
public void removeValue(String name) {
throw new UnsupportedOperationException("Session values are deprecated and not suported");
throw new UnsupportedOperationException("Session values are deprecated and not supported");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected AwsLambdaServletContainerHandler(Class<RequestType> requestTypeClass,
//-------------------------------------------------------------

/**
* Fowards a request to the existing framework container. This is called by the <code>AwsProxyRequestDispatcher</code> object
* Forwards a request to the existing framework container. This is called by the <code>AwsProxyRequestDispatcher</code> object
* @param servletRequest The modified request object with the new request path
* @param servletResponse The original servlet response
* @throws ServletException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

/**
* Implementation of the <code>FilterChain</code> interface. FilterChainHolder objects should be accessed through the
* <code>FilterChainManager</code>. Once a filter chain is loaded, use the <code>doFilter</code> emthod to run the chain
* <code>FilterChainManager</code>. Once a filter chain is loaded, use the <code>doFilter</code> method to run the chain
* during a request lifecycle
*/
public class FilterChainHolder implements FilterChain {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* implementations that use the <code>HttpServletRequest</code> and <code>HttpServletResponse</code> objects.
*
* For example, the Spring implementation creates the ServletContext when the application is initialized the first time
* and creates a FitlerChainManager to execute its filters for each request.
* and creates a FilterChainManager to execute its filters for each request.
*/
public abstract class FilterChainManager<ServletContextType extends ServletContext> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public FilterConfig getFilterConfig() {
/**
* Returns the Registration object for the filter. The <code>Registration</code> object defined in this file implements
* both <code>FilterRegistration</code> and <code>FilterRegistration.Dynamic</code>
* @return The registration obejct
* @return The registration object
*/
public Registration getRegistration() {
return registration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

/**
* Identity model for the API Gateway request context. This is used in the default AwsProxyRequest object. Contains
* all of the properties declared in the $context.identity API Gateway object so could be re-used for other implemnetations
* all of the properties declared in the $context.identity API Gateway object so could be re-used for other implementations
*
* @see AwsProxyRequest
* @see RequestReader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public boolean isQueryStringCaseSensitive() {
/**
* Sets whether query string parameter names should be treated as case sensitive. The default
* value of this option is <code>false</code> for backward compatibility.
* @param queryStringCaseSensitive Tells the framework to treat query string parmaeter names as case sensitive
* @param queryStringCaseSensitive Tells the framework to treat query string parameter names as case sensitive
*/
public void setQueryStringCaseSensitive(boolean queryStringCaseSensitive) {
this.queryStringCaseSensitive = queryStringCaseSensitive;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
package com.amazonaws.serverless.proxy.model;

/**
* Default error response model. This object is used by the <code>AwsProxyExceptionHandler</code> objcect.
* Default error response model. This object is used by the <code>AwsProxyExceptionHandler</code> object.
*/
public class ErrorModel {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static SparkLambdaContainerHandler<AwsProxyRequest, AwsProxyResponse> get
new AwsProxyExceptionHandler(),
new LambdaEmbeddedServerFactory());

// For Spark we cannot call intialize here. It needs to be called manually after the routes are set
// For Spark we cannot call initialize here. It needs to be called manually after the routes are set
//newHandler.initialize();

return newHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public LambdaEmbeddedServerFactory() {}
* Constructor used in unit tests to inject a mocked embedded server
* @param server The mocked server
*/
@SuppressFBWarnings("ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD") // suppressing the warining as this constructor is only used for unit tests
@SuppressFBWarnings("ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD") // suppressing the warning as this constructor is only used for unit tests
public LambdaEmbeddedServerFactory(LambdaEmbeddedServer server) {
LambdaEmbeddedServerFactory.embeddedServer = server;
}
Expand Down