[JBoss JIRA] (FORGE-2397) Being able to create new Websocket Server endpoints
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-2397:
----------------------------------------
Summary: Being able to create new Websocket Server endpoints
Key: FORGE-2397
URL: https://issues.jboss.org/browse/FORGE-2397
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.17.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
It would be good to be able to create a Websocket Server endpoint with the following command :
{code}
websocket-new-server-endpoint --name MyServerEndpoint
{code}
This would generate the following code with the default URI {{myServer}}:
{code}
@ServerEndpoint("/myServer")
public class MyServerEndpoint {
}
{code}
A {{uri}} parameter would allow to customize the URI of the endpoint
{code}
websocket-new-server-endpoint --name MyServerEndpoint --uri abc
{code}
This would generate the following code with a {{abc}} URI:
{code}
@ServerEndpoint("/abc")
public class MyServerEndpoint {
}
{code}
As a shortcut (see [FORGE-2394] we could easily implement basic methods such as :
{code}
websocket-new-server-endpoint --name MyServerEndpoint --uri abc --methods ON_OPEN ON_CLOSE ON_ERROR ON_MESSAGE
{code}
This would generate a server endpoint with the four following methods :
{code}
@ServerEndpoint("/abc")
public class MyServerEndpoint {
@OnOpen
public void onOpen(Session session) {
}
@OnClose
public void onClose(CloseReason closeReason) {
}
@OnMessage
public void onMessage(String message, Session session) {
}
@OnError
public void onError(Throwable t) {
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FORGE-2396) This page is awesome! So Fast !
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2396?page=com.atlassian.jira.plugin... ]
George Gastaldi deleted FORGE-2396:
-----------------------------------
> This page is awesome! So Fast !
> -------------------------------
>
> Key: FORGE-2396
> URL: https://issues.jboss.org/browse/FORGE-2396
> Project: Forge
> Issue Type: Feature Request
> Environment: *Location*: http://localhost:8080/
> *User-Agent*: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
> *Screen Resolution*: 1920 x 1080
> Reporter: George Gastaldi
> Labels: collector-719046f7
>
> *Rating*: :D Awesome!
> {panel:title=What do you like?|borderColor=#ccc| titleBGColor=#c2ffa2|bgColor=#fff}
> This page is awesome! So Fast !
> {panel}
> {panel:title=What needs to be improved?|borderColor=#ccc| titleBGColor=#faacad|bgColor=#fff}
> Nothing
> {panel}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FORGE-2396) This page is awesome! So Fast !
by George Gastaldi (JIRA)
George Gastaldi created FORGE-2396:
--------------------------------------
Summary: This page is awesome! So Fast !
Key: FORGE-2396
URL: https://issues.jboss.org/browse/FORGE-2396
Project: Forge
Issue Type: Feature Request
Environment:
*Location*: http://localhost:8080/
*User-Agent*: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
*Screen Resolution*: 1920 x 1080
Reporter: George Gastaldi
*Rating*: :D Awesome!
{panel:title=What do you like?|borderColor=#ccc| titleBGColor=#c2ffa2|bgColor=#fff}
This page is awesome! So Fast !
{panel}
{panel:title=What needs to be improved?|borderColor=#ccc| titleBGColor=#faacad|bgColor=#fff}
Nothing
{panel}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FORGE-2394) Being able to add methods to an existing Websocket Client or Server endpoints
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2394?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2394:
-----------------------------------
Labels: Starter (was: )
> Being able to add methods to an existing Websocket Client or Server endpoints
> -----------------------------------------------------------------------------
>
> Key: FORGE-2394
> URL: https://issues.jboss.org/browse/FORGE-2394
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.17.0.Final
> Reporter: Antonio Goncalves
> Labels: Starter
> Fix For: 2.x Future
>
>
> It would be good to be able to add methods to a Websocket Client or Server endpoint with the following command :
> {code}
> websocket-add-method --named processOpen --method ON_OPEN
> {code}
> This would add the {{processOpen}} method to the existing server endpoint :
> {code}
> @ServerEndpoint("/abc")
> public class MyServerEndpoint {
> @OnOpen
> public void processOpen(Session session) {
> }
> {code}
> There are four method type :
> * {{ON_OPEN}}
> * {{ON_CLOSE}}
> * {{ON_ERROR}}
> * {{ON_MESSAGE}}
> The method signature of {{ON_OPEN}}, {{ON_CLOSE}} and {{ON_ERROR}} are set and cannot be changed :
> {code}
> @OnOpen
> public void onOpen(Session session) {
> }
> @OnClose
> public void onClose(CloseReason closeReason) {
> }
> @OnError
> public void onError(Throwable t) {
> }
> {code}
> The method signature of {{ON_MESSAGE}} can be customized. By default, the message can be of type String. So the following command :
> {code}
> websocket-add-method --named processMsg --method ON_MESSAGE
> {code}
> This would add the {{processMsg}} method of type String to the existing server endpoint :
> {code}
> @ServerEndpoint("/abc")
> public class MyServerEndpoint {
> @OnMessage
> public void processMsg(String message, Session client) {
> }
> {code}
> We could change the type of the message with :
> {code}
> websocket-add-method --named processMsg --method ON_MESSAGE --type MyMessage
> {code}
> This would add the {{processMsg}} method of type {{MyMessage}} :
> {code}
> @ServerEndpoint("/abc")
> public class MyServerEndpoint {
> @OnMessage
> public void processMsg(MyMessage message, Session client) {
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FORGE-2395) Being able to create new Websocket Client endpoints
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2395?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2395:
-----------------------------------
Labels: Starter (was: )
> Being able to create new Websocket Client endpoints
> ---------------------------------------------------
>
> Key: FORGE-2395
> URL: https://issues.jboss.org/browse/FORGE-2395
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.17.0.Final
> Reporter: Antonio Goncalves
> Labels: Starter
> Fix For: 2.x Future
>
>
> It would be good to be able to create a Websocket Client endpoint with the following command :
> {code}
> websocket-new-client-endpoint --name MyClientEndpoint
> {code}
> This would generate the following code :
> {code}
> @ClientEndpoint
> public class MyClientEndpoint {
> }
> {code}
> As a shortcut (see [FORGE-2394]) we could easily implement basic methods such as :
> {code}
> websocket-new-client-endpoint --name MyClientEndpoint --methods ON_OPEN ON_CLOSE ON_ERROR ON_MESSAGE
> {code}
> This would generate a client endpoint with the four following methods :
> {code}
> @ClientEndpoint
> public class MyClientEndpoint {
> @OnOpen
> public void onOpen(Session session) {
> }
> @OnClose
> public void onClose(CloseReason closeReason) {
> }
> @OnMessage
> public void onMessage(String message, Session session) {
> }
>
> @OnError
> public void onError(Throwable t) {
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FORGE-2395) Being able to create new Websocket Client endpoints
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-2395:
----------------------------------------
Summary: Being able to create new Websocket Client endpoints
Key: FORGE-2395
URL: https://issues.jboss.org/browse/FORGE-2395
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.17.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
It would be good to be able to create a Websocket Client endpoint with the following command :
{code}
websocket-new-client-endpoint --name MyClientEndpoint
{code}
This would generate the following code :
{code}
@ClientEndpoint
public class MyClientEndpoint {
}
{code}
As a shortcut (see [FORGE-2394]) we could easily implement basic methods such as :
{code}
websocket-new-client-endpoint --name MyClientEndpoint --methods ON_OPEN ON_CLOSE ON_ERROR ON_MESSAGE
{code}
This would generate a client endpoint with the four following methods :
{code}
@ClientEndpoint
public class MyClientEndpoint {
@OnOpen
public void onOpen(Session session) {
}
@OnClose
public void onClose(CloseReason closeReason) {
}
@OnMessage
public void onMessage(String message, Session session) {
}
@OnError
public void onError(Throwable t) {
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FORGE-2394) Being able to add methods to an existing Websocket Client or Server endpoints
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-2394:
----------------------------------------
Summary: Being able to add methods to an existing Websocket Client or Server endpoints
Key: FORGE-2394
URL: https://issues.jboss.org/browse/FORGE-2394
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.17.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
It would be good to be able to add methods to a Websocket Client or Server endpoint with the following command :
{code}
websocket-add-method --named processOpen --method ON_OPEN
{code}
This would add the {{processOpen}} method to the existing server endpoint :
{code}
@ServerEndpoint("/abc")
public class MyServerEndpoint {
@OnOpen
public void processOpen(Session session) {
}
{code}
There are four method type :
* {{ON_OPEN}}
* {{ON_CLOSE}}
* {{ON_ERROR}}
* {{ON_MESSAGE}}
The method signature of {{ON_OPEN}}, {{ON_CLOSE}} and {{ON_ERROR}} are set and cannot be changed :
{code}
@OnOpen
public void onOpen(Session session) {
}
@OnClose
public void onClose(CloseReason closeReason) {
}
@OnError
public void onError(Throwable t) {
}
{code}
The method signature of {{ON_MESSAGE}} can be customized. By default, the message can be of type String. So the following command :
{code}
websocket-add-method --named processMsg --method ON_MESSAGE
{code}
This would add the {{processMsg}} method of type String to the existing server endpoint :
{code}
@ServerEndpoint("/abc")
public class MyServerEndpoint {
@OnMessage
public void processMsg(String message, Session client) {
}
{code}
We could change the type of the message with :
{code}
websocket-add-method --named processMsg --method ON_MESSAGE --type MyMessage
{code}
This would add the {{processMsg}} method of type {{MyMessage}} :
{code}
@ServerEndpoint("/abc")
public class MyServerEndpoint {
@OnMessage
public void processMsg(MyMessage message, Session client) {
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FORGE-2389) Support JavaEE security
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2389?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2389:
-----------------------------------
Summary: Support JavaEE security (was: Plugin to secure application)
> Support JavaEE security
> -----------------------
>
> Key: FORGE-2389
> URL: https://issues.jboss.org/browse/FORGE-2389
> Project: Forge
> Issue Type: Feature Request
> Components: Java EE
> Reporter: George Gastaldi
> Assignee: Ivan St. Ivanov
> Labels: starter
> Fix For: 2.x Future
>
>
> The plugin should primarily:
> - Add a <security-constraint> entry to the web.xml file.
> - Introduce a SecurityFacet for interoperability with other plugins
> - The ScaffoldPlugin could create entries for the login and login-error pages if the SecurityFacet is enabled in the current project
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FORGE-2389) Plugin to secure application
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2389?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2389:
-----------------------------------
Component/s: Java EE
> Plugin to secure application
> ----------------------------
>
> Key: FORGE-2389
> URL: https://issues.jboss.org/browse/FORGE-2389
> Project: Forge
> Issue Type: Feature Request
> Components: Java EE
> Reporter: George Gastaldi
> Assignee: Ivan St. Ivanov
> Labels: starter
> Fix For: 2.x Future
>
>
> The plugin should primarily:
> - Add a <security-constraint> entry to the web.xml file.
> - Introduce a SecurityFacet for interoperability with other plugins
> - The ScaffoldPlugin could create entries for the login and login-error pages if the SecurityFacet is enabled in the current project
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FORGE-2389) Plugin to secure application
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2389?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2389:
-----------------------------------
Fix Version/s: 2.x Future
> Plugin to secure application
> ----------------------------
>
> Key: FORGE-2389
> URL: https://issues.jboss.org/browse/FORGE-2389
> Project: Forge
> Issue Type: Feature Request
> Components: Java EE
> Reporter: George Gastaldi
> Assignee: Ivan St. Ivanov
> Labels: starter
> Fix For: 2.x Future
>
>
> The plugin should primarily:
> - Add a <security-constraint> entry to the web.xml file.
> - Introduce a SecurityFacet for interoperability with other plugins
> - The ScaffoldPlugin could create entries for the login and login-error pages if the SecurityFacet is enabled in the current project
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months