-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revamp Filters, Support for HTTP Filters, AccessLog Filters #71
Merged
Merged
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
8952324
added http access log
ajay-jalgaonkar 0f99aca
added enableAccessLogs flag
ajay-jalgaonkar 60c54a2
Added GrpcAccessLogFilter
ajay-jalgaonkar bf39538
added default true for access log filters
ajay-jalgaonkar df8105b
added default true for access log filters
ajay-jalgaonkar 40d375e
using arraylist instead of linkedlist
ajay-jalgaonkar 68c472e
author
ajay-jalgaonkar 30da9b9
added example
ajay-jalgaonkar 1f686fd
added example
ajay-jalgaonkar 845bb19
added access log separate for logging
ajay-jalgaonkar e7e5fc7
added access log separate for logging
ajay-jalgaonkar 0fb3927
added access log separate for logging
ajay-jalgaonkar c3f72e0
added common filters interfaces for http and grpc
ajay-jalgaonkar 09b8a45
added filter configs
ajay-jalgaonkar a8f033e
added filter configs
ajay-jalgaonkar f5303c8
uncommented
ajay-jalgaonkar 91ff9ad
template changes
ajay-jalgaonkar b293189
template changes
ajay-jalgaonkar 0072103
template changes
ajay-jalgaonkar bf4c094
template changes
ajay-jalgaonkar 8305794
template changes
ajay-jalgaonkar 9b90533
template changes
ajay-jalgaonkar 0d3f242
template changes
ajay-jalgaonkar fab2122
template changes
ajay-jalgaonkar 3bf1922
template changes
ajay-jalgaonkar af09b38
template changes
ajay-jalgaonkar a1c1c48
changed creation of requestparams
ajay-jalgaonkar 1fe6d27
template
ajay-jalgaonkar 401f0a0
template
ajay-jalgaonkar 5f6e76e
template
ajay-jalgaonkar c40e70d
template
ajay-jalgaonkar eb157b2
renamed filters
ajay-jalgaonkar a5ab4dd
adding removing default impls
ajay-jalgaonkar cd9439f
renamed
ajay-jalgaonkar 01602ba
renamed
ajay-jalgaonkar 02c8946
template
ajay-jalgaonkar f6ce472
rename
ajay-jalgaonkar bb985c2
rename
ajay-jalgaonkar 8cb8ac1
extended AccessLogHttpFilter
ajay-jalgaonkar 7122c2e
extended AccessLogHttpFilter
ajay-jalgaonkar f29d4a3
extended AccessLogHttpFilter
ajay-jalgaonkar 0372965
added stringbuilder in AccessLogGrpcFilter
ajay-jalgaonkar f5a71dc
no change
ajay-jalgaonkar c6b69df
renaming
ajay-jalgaonkar d181572
fucntion name updated
ajay-jalgaonkar b965c83
uncommented
ajay-jalgaonkar 8801ca8
Split Request & Request Params
kingster a0f93cf
docs
kingster 3ef92b3
Update mvn template files
kingster 44a11d2
Update hello_world_config.yml
kingster d12fe01
docs
kingster 56fdef2
fixes
kingster cf26e64
docs
kingster 38a2b4a
adding MDC, updated logging pattern
ajay-jalgaonkar 87ed452
FilterInteceptor
kingster 497c035
Update HttpFilterInterceptor.java
kingster 07abf21
tests
kingster ed035f0
Revert "adding MDC, updated logging pattern"
kingster 1f62b1f
Merge branch 'http-filters' into http-accesslog
kingster 1e5d26e
updated pattern
ajay-jalgaonkar 50d5f76
added healthcheck in dashboard
ajay-jalgaonkar 888fab5
author
ajay-jalgaonkar 1c9601c
author
ajay-jalgaonkar 04c6d6d
author
ajay-jalgaonkar 8a91c93
minor rename
kingster c18d63b
minor fixes
kingster File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
core/src/main/java/com/flipkart/gjex/core/filter/RequestParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) The original author or authors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.flipkart.gjex.core.filter; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
/** | ||
* Represents the parameters of a request within the GJEX framework. | ||
* This class encapsulates common request parameters such as client IP, resource path, | ||
* and any additional metadata associated with the request. | ||
* | ||
* @param <M> The type of the metadata associated with the request. This allows for flexibility | ||
* in the type of metadata that can be attached to a request, making the class | ||
* adaptable to various needs. | ||
* | ||
* @author ajay.jalgaonkar | ||
*/ | ||
@Getter | ||
@Builder | ||
public class RequestParams<M> { | ||
// IP address of the client making the request. | ||
String clientIp; | ||
|
||
// Path of the resource being requested. | ||
String resourcePath; | ||
|
||
// Metadata associated with the request, of generic type M. | ||
M metadata; | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, should be
filterConfig
simplyThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated