Skip to content
Merged
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
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ dependencies {
implementation 'com.github.Dh3356:rest_interceptor:v{version}'
// example: implementation 'com.github.Dh3356:rest_interceptor:v0.1'
}

// Since 1.0.3
repositories {
...
maven { url "https://jitpack.io" }
}

dependencies {
...
implementation 'com.github.cookie-meringue:rest_interceptor:v{version}'
// example: implementation 'com.github.cookie-meringue:rest_interceptor:v1.0.3'
}
```

## Sample Code
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
id 'maven-publish'
}

group = 'dh3356.restful_interceptor'
group = 'cookie-meringue.restful_interceptor'
version = '1.0.2'

java {
Expand All @@ -33,7 +33,7 @@ dependencies {
publishing {
publications {
maven(MavenPublication) {
groupId = 'dh3356.restful_interceptor'
groupId = 'cookie-meringue.restful_interceptor'
artifactId = 'restful_interceptor'
version = '1.0.2'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* <p> Request will always be passed if it is a pre-flight request or it is not matched with any of the
* restfulPatterns.
*
* @author Dh3356
* @author cookie-meringue
* @since 0.1
*/
public abstract class RestInterceptor implements HandlerInterceptor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Assists with the creation of a {@link RestInterceptor}.
*
* @author Dh3356
* @author cookie-meringue
* @since 0.1
*/
public class RestInterceptorRegistration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Helps with configuring a list of RestInterceptors. Adaptor between InterceptorRegistry and RestInterceptor.
*
* @author Dh3356
* @author cookie-meringue
* @since 0.1
*/
public class RestInterceptorRegistry {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* <p> This class is used to match the request URI and HTTP method.
* <p> This class is used by {@link RestInterceptor}.
*
* @author Dh3356
* @author cookie-meringue
* @since 0.1
*/
public class RestfulPattern {
Expand All @@ -34,7 +34,7 @@ private RestfulPattern(final String path, final Set<HttpMethod> methods) {
* Create a new instance of {@link RestfulPattern} with the given path.
* <p> Default HTTP methods are GET, POST, PUT, DELETE, PATCH, TRACE, OPTIONS, HEAD.
*
* @author Dh3356
* @author cookie-meringue
* @since 1.0
*/
public static RestfulPattern fromPath(final String path) {
Expand All @@ -44,7 +44,7 @@ public static RestfulPattern fromPath(final String path) {
/**
* Create a new instance of {@link RestfulPattern} with the given path and HTTP methods.
*
* @author Dh3356
* @author cookie-meringue
* @since 1.0
*/
public static RestfulPattern of(final String path, final HttpMethod... methods) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* <p>
* Encapsulates a Collection of RestfulPattern and provides apis.
*
* @author Dh3356
* @author cookie-meringue
* @since Upcoming
*/
public final class RestfulPatterns {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* Test class for {@link RestfulPattern}.
*
* @author Dh3356
* @author cookie-meringue
* @since 0.2
*/
class RestfulPatternTest {
Expand Down
Loading