[JBoss JIRA] (FORGE-2177) Being able to create a new REST endpoint
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2177?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-2177:
-------------------------------------
Description:
It would be good to have a command to create a REST endpoint. A command like this :
{code}
rest-new-endpoint --named MyEndpoint
{code}
Would generate
{code}
@Path("/myEndpoint")
public class CustomerEndpoint
{
}
{code}
Changing the path would be :
{code}
rest-new-endpoint --named MyEndPoint --path endpoint
{code}
This would generate :
{code}
@Path("/endpoint")
public class CustomerEndpoint
{
}
{code}
The command also allows to generate several default methods (get, post, put, delete) with default mime type and so on :
{code}
rest-new-endpoint --named MyEndPoin --methods GET POST DELETE
{code}
This would generate :
{code}
@Path("/myEndpoint")
public class CustomerEndpoint
{
}
{code}
Also, a REST configuration class needs to be creates, such as :
{code}
@ApplicationPath("/rest")
public class RestApplication extends Application
{
@GET
@Produces({"application/xml", "application/json"})
public Response doGet()
{
return Response.noContent().build();
}
}
{code}
was:
It would be good to have a command to create a REST endpoint. A command like this :
{code}
rest-new-endpoint --named MyEndpoint
{code}
Would generate
{code}
@Path("/myEndpoint")
public class CustomerEndpoint
{
}
{code}
Changing the path would be :
{code}
rest-new-endpoint --named MyEndPoint --path endpoint
{code}
This would generate :
{code}
@Path("/endpoint")
public class CustomerEndpoint
{
}
{code}
The command also allows to generate several default methods (get, post, put, delete) with default mime type and so on :
{code}
rest-new-endpoint --named MyEndPoin --methods GET POST DELETE
{code}
This would generate :
{code}
@Path("/myEndpoint")
public class CustomerEndpoint
{
}
{code}
Also, a REST configuration class needs to be creates, such as :
{code}
@ApplicationPath("/rest")
public class RestApplication extends Application
{
@GET
@Produces({"application/xml", "application/json"})
public Response doGet()
{
return Response.ok(entity).build();
}
}
{code}
> Being able to create a new REST endpoint
> ----------------------------------------
>
> Key: FORGE-2177
> URL: https://issues.jboss.org/browse/FORGE-2177
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.13.0.Final
> Reporter: Antonio Goncalves
> Labels: Starter
> Fix For: 2.x Future
>
>
> It would be good to have a command to create a REST endpoint. A command like this :
> {code}
> rest-new-endpoint --named MyEndpoint
> {code}
> Would generate
> {code}
> @Path("/myEndpoint")
> public class CustomerEndpoint
> {
> }
> {code}
> Changing the path would be :
> {code}
> rest-new-endpoint --named MyEndPoint --path endpoint
> {code}
> This would generate :
> {code}
> @Path("/endpoint")
> public class CustomerEndpoint
> {
> }
> {code}
> The command also allows to generate several default methods (get, post, put, delete) with default mime type and so on :
> {code}
> rest-new-endpoint --named MyEndPoin --methods GET POST DELETE
> {code}
> This would generate :
> {code}
> @Path("/myEndpoint")
> public class CustomerEndpoint
> {
> }
> {code}
> Also, a REST configuration class needs to be creates, such as :
> {code}
> @ApplicationPath("/rest")
> public class RestApplication extends Application
> {
> @GET
> @Produces({"application/xml", "application/json"})
> public Response doGet()
> {
> return Response.noContent().build();
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 1 month
[JBoss JIRA] (FORGE-2177) Being able to create a new REST endpoint
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2177?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-2177:
-------------------------------------
Description:
It would be good to have a command to create a REST endpoint. A command like this :
{code}
rest-new-endpoint --named MyEndpoint
{code}
Would generate
{code}
@Path("/myEndpoint")
public class CustomerEndpoint
{
}
{code}
Changing the path would be :
{code}
rest-new-endpoint --named MyEndPoint --path endpoint
{code}
This would generate :
{code}
@Path("/endpoint")
public class CustomerEndpoint
{
}
{code}
The command also allows to generate several default methods (get, post, put, delete) with default mime type and so on :
{code}
rest-new-endpoint --named MyEndPoin --methods GET POST DELETE
{code}
This would generate :
{code}
@Path("/myEndpoint")
public class CustomerEndpoint
{
}
{code}
Also, a REST configuration class needs to be creates, such as :
{code}
@ApplicationPath("/rest")
public class RestApplication extends Application
{
@GET
@Produces({"application/xml", "application/json"})
public Response doGet()
{
return Response.ok(entity).build();
}
}
{code}
was:
It would be good to have a command to create a REST endpoint. A command like this :
{code}
rest-new-endpoint --named MyEndpoint
{code}
Would generate
{code}
@Path("/myEndpoint")
public class CustomerEndpoint
{
}
{code}
Changing the path would be :
{code}
rest-new-endpoint --named MyEndPoint --path endpoint
{code}
This would generate :
{code}
@Path("/endpoint")
public class CustomerEndpoint
{
}
{code}
Also, a REST configuration class needs to be creates, such as :
{code}
@ApplicationPath("/rest")
public class RestApplication extends Application
{
}
{code}
> Being able to create a new REST endpoint
> ----------------------------------------
>
> Key: FORGE-2177
> URL: https://issues.jboss.org/browse/FORGE-2177
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.13.0.Final
> Reporter: Antonio Goncalves
> Labels: Starter
> Fix For: 2.x Future
>
>
> It would be good to have a command to create a REST endpoint. A command like this :
> {code}
> rest-new-endpoint --named MyEndpoint
> {code}
> Would generate
> {code}
> @Path("/myEndpoint")
> public class CustomerEndpoint
> {
> }
> {code}
> Changing the path would be :
> {code}
> rest-new-endpoint --named MyEndPoint --path endpoint
> {code}
> This would generate :
> {code}
> @Path("/endpoint")
> public class CustomerEndpoint
> {
> }
> {code}
> The command also allows to generate several default methods (get, post, put, delete) with default mime type and so on :
> {code}
> rest-new-endpoint --named MyEndPoin --methods GET POST DELETE
> {code}
> This would generate :
> {code}
> @Path("/myEndpoint")
> public class CustomerEndpoint
> {
> }
> {code}
> Also, a REST configuration class needs to be creates, such as :
> {code}
> @ApplicationPath("/rest")
> public class RestApplication extends Application
> {
> @GET
> @Produces({"application/xml", "application/json"})
> public Response doGet()
> {
> return Response.ok(entity).build();
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 1 month
[JBoss JIRA] (FORGE-2325) JSF converter and validator should be under the view package
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2325?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-2325:
-------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/forge/core/pull/563
> JSF converter and validator should be under the view package
> ------------------------------------------------------------
>
> Key: FORGE-2325
> URL: https://issues.jboss.org/browse/FORGE-2325
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.16.0.Final
> Reporter: Antonio Goncalves
> Assignee: Antonio Goncalves
> Fix For: 2.x Future
>
>
> If you type the following commands :
> {code}
> faces-new-bean --named MyBean
> faces-new-converter --named MyConverter
> faces-new-validator --named MyValidator
> {code}
> You get :
> {code}
> org.test.view
> MyBean
> org.test.validator
> MyValidator
> org.test.converter
> MyConverter
> {code}
> By default it should be
> {code}
> org.test.view
> MyBean
> org.test.view.validator
> MyValidator
> org.test.view.converter
> MyConverter
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 1 month
[JBoss JIRA] (FORGE-2325) JSF converter and validator should be under the view package
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2325?page=com.atlassian.jira.plugin... ]
Antonio Goncalves reassigned FORGE-2325:
----------------------------------------
Assignee: Antonio Goncalves
> JSF converter and validator should be under the view package
> ------------------------------------------------------------
>
> Key: FORGE-2325
> URL: https://issues.jboss.org/browse/FORGE-2325
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.16.0.Final
> Reporter: Antonio Goncalves
> Assignee: Antonio Goncalves
> Fix For: 2.x Future
>
>
> If you type the following commands :
> {code}
> faces-new-bean --named MyBean
> faces-new-converter --named MyConverter
> faces-new-validator --named MyValidator
> {code}
> You get :
> {code}
> org.test.view
> MyBean
> org.test.validator
> MyValidator
> org.test.converter
> MyConverter
> {code}
> By default it should be
> {code}
> org.test.view
> MyBean
> org.test.view.validator
> MyValidator
> org.test.view.converter
> MyConverter
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 1 month
[JBoss JIRA] (FORGE-2325) JSF converter and validator should be under the view package
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2325?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-2325:
-------------------------------------
Parent: FORGE-1926
Issue Type: Sub-task (was: Feature Request)
> JSF converter and validator should be under the view package
> ------------------------------------------------------------
>
> Key: FORGE-2325
> URL: https://issues.jboss.org/browse/FORGE-2325
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.16.0.Final
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> If you type the following commands :
> {code}
> faces-new-bean --named MyBean
> faces-new-converter --named MyConverter
> faces-new-validator --named MyValidator
> {code}
> You get :
> {code}
> org.test.view
> MyBean
> org.test.validator
> MyValidator
> org.test.converter
> MyConverter
> {code}
> By default it should be
> {code}
> org.test.view
> MyBean
> org.test.view.validator
> MyValidator
> org.test.view.converter
> MyConverter
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 1 month
[JBoss JIRA] (FORGE-2325) JSF converter and validator should be under the view package
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-2325:
----------------------------------------
Summary: JSF converter and validator should be under the view package
Key: FORGE-2325
URL: https://issues.jboss.org/browse/FORGE-2325
Project: Forge
Issue Type: Feature Request
Components: Java EE
Affects Versions: 2.16.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
If you type the following commands :
{code}
faces-new-bean --named MyBean
faces-new-converter --named MyConverter
faces-new-validator --named MyValidator
{code}
You get :
{code}
org.test.view
MyBean
org.test.validator
MyValidator
org.test.converter
MyConverter
{code}
By default it should be
{code}
org.test.view
MyBean
org.test.view.validator
MyValidator
org.test.view.converter
MyConverter
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 1 month
[JBoss JIRA] (FORGE-2324) Being able to create Servlet Filter
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2324?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-2324:
-------------------------------------
Description:
A command such as :
{code}
servlet-new-filter --MyFilter
{code}
This would generate :
{code}
@WebFilter
public class MyFilter implements Filter {
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
}
@Override
public void destroy() {
}
}
{code}
This should be easier to do with [ROASTER-51]
was:
A command such as :
{code}
servlet-new-filter --MyFilter
{code}
This would generate :
{code}
@WebFilter
public class MyFilter implements Filter {
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
}
@Override
public void destroy() {
}
}
{code}
> Being able to create Servlet Filter
> -----------------------------------
>
> Key: FORGE-2324
> URL: https://issues.jboss.org/browse/FORGE-2324
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.16.0.Final
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> A command such as :
> {code}
> servlet-new-filter --MyFilter
> {code}
> This would generate :
> {code}
> @WebFilter
> public class MyFilter implements Filter {
> @Override
> public void init(FilterConfig filterConfig) throws ServletException {
> }
> @Override
> public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
> }
> @Override
> public void destroy() {
> }
> }
> {code}
> This should be easier to do with [ROASTER-51]
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 1 month
[JBoss JIRA] (FORGE-2324) Being able to create Servlet Filter
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2324?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-2324:
-------------------------------------
Description:
A command such as :
{code}
servlet-new-filter --MyFilter
{code}
This would generate :
{code}
@WebFilter
public class MyFilter implements Filter {
@Override
public void init(FilterConfig filterConfig) throws ServletException {
}
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
}
@Override
public void destroy() {
}
}
{code}
> Being able to create Servlet Filter
> -----------------------------------
>
> Key: FORGE-2324
> URL: https://issues.jboss.org/browse/FORGE-2324
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.16.0.Final
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> A command such as :
> {code}
> servlet-new-filter --MyFilter
> {code}
> This would generate :
> {code}
> @WebFilter
> public class MyFilter implements Filter {
> @Override
> public void init(FilterConfig filterConfig) throws ServletException {
> }
> @Override
> public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
> }
> @Override
> public void destroy() {
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
9 years, 1 month