vraptor-routes

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

GroupId

GroupId

br.com.caelum.vraptor
ArtifactId

ArtifactId

vraptor-routes
Last Version

Last Version

4.1.0-RC3
Release Date

Release Date

Type

Type

jar
Description

Description

vraptor-routes
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project URL

Project URL

http://github.com/caelum/vraptor-routes
Source Code Management

Source Code Management

http://github.com/caelum/vraptor-routes

Download vraptor-routes

How to add to project

<!-- https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-routes/ -->
<dependency>
    <groupId>br.com.caelum.vraptor</groupId>
    <artifactId>vraptor-routes</artifactId>
    <version>4.1.0-RC3</version>
</dependency>
// https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-routes/
implementation 'br.com.caelum.vraptor:vraptor-routes:4.1.0-RC3'
// https://jarcasting.com/artifacts/br.com.caelum.vraptor/vraptor-routes/
implementation ("br.com.caelum.vraptor:vraptor-routes:4.1.0-RC3")
'br.com.caelum.vraptor:vraptor-routes:jar:4.1.0-RC3'
<dependency org="br.com.caelum.vraptor" name="vraptor-routes" rev="4.1.0-RC3">
  <artifact name="vraptor-routes" type="jar" />
</dependency>
@Grapes(
@Grab(group='br.com.caelum.vraptor', module='vraptor-routes', version='4.1.0-RC3')
)
libraryDependencies += "br.com.caelum.vraptor" % "vraptor-routes" % "4.1.0-RC3"
[br.com.caelum.vraptor/vraptor-routes "4.1.0-RC3"]

Dependencies

compile (2)

Group / Artifact Type Version
br.com.caelum : vraptor jar 4.1.0-RC2
javax.enterprise : cdi-api jar 1.1

provided (1)

Group / Artifact Type Version
org.mortbay.jetty : servlet-api jar 3.0.20100224

test (4)

Group / Artifact Type Version
junit : junit jar 4.11
org.mockito : mockito-core jar 1.9.5
org.hamcrest : hamcrest-all jar 1.3
org.hamcrest : hamcrest-library jar 1.3

Project Modules

There are no modules declared in this project.

vraptor-routes

To use it you just need to create an simple routes.properties file with your application routes:

SomeController.method1 = /my/beauthy/route
SomeController.method2 = /my/{param}/route

And add the @Routed annotation at your controller or controller methods:

@Controller 
@Routed
public class SomeController {

	@Post 
	public void method1() {
	}

	@Get 
	public void method2() {
	}
}

If you want to use other file you can also configure the file name on environment.properties:

routesFileName = routes_pt-BR.properties

You can use the @Routed annotation with methods containing priority normally, but you should leave the @Path value empty (plugin will always consider the routed url).

@Routed
@Path(priority=Path.HIGH, value="")
public void myAmbiguousMethod(){ //... }
br.com.caelum.vraptor

Caelum

Versions

Version
4.1.0-RC3