Fix minor formating issues

revert-dabc3590
warunalakshitha 7 years ago
parent 09724df216
commit 1d23c3f709

@ -73,7 +73,6 @@ public class ClientSessionSubscriptionEndpoint extends SubscriptionEndpoint {
* @param session - Registered session. * @param session - Registered session.
* @param deviceType - DeviceType * @param deviceType - DeviceType
* @param deviceId - Device Identifier * @param deviceId - Device Identifier
* @param message - Status code for web-socket close.
*/ */
@OnMessage @OnMessage
public void onMessage(Session session, String message, @PathParam("deviceType") String deviceType, @PathParam public void onMessage(Session session, String message, @PathParam("deviceType") String deviceType, @PathParam
@ -87,7 +86,7 @@ public class ClientSessionSubscriptionEndpoint extends SubscriptionEndpoint {
* @param session - Registered session. * @param session - Registered session.
* @param deviceType - DeviceType * @param deviceType - DeviceType
* @param deviceId - Device Identifier * @param deviceId - Device Identifier
* @param message - Message which needs to send to peer * @param message - Byte message which needs to send to peer
*/ */
@OnMessage @OnMessage
public void onMessage(Session session, byte[] message, @PathParam("deviceType") String deviceType, @PathParam public void onMessage(Session session, byte[] message, @PathParam("deviceType") String deviceType, @PathParam
@ -96,7 +95,7 @@ public class ClientSessionSubscriptionEndpoint extends SubscriptionEndpoint {
} }
/** /**
* Web socket onClose - Handle socket connection close * Web socket onClose use to handle socket connection close
* *
* @param session - Registered session. * @param session - Registered session.
* @param deviceType - DeviceType * @param deviceType - DeviceType
@ -110,12 +109,12 @@ public class ClientSessionSubscriptionEndpoint extends SubscriptionEndpoint {
} }
/** /**
* Web socket onError - Handle socket connection error * Web socket onError use to handle socket connection error
* *
* @param session - Registered session. * @param session - Registered session.
* @param throwable - Web socket exception
* @param deviceType - DeviceType * @param deviceType - DeviceType
* @param deviceId - Device Identifier * @param deviceId - Device Identifier
* @param throwable - Status code for web-socket close.
*/ */
@OnError @OnError
public void onError(Session session, Throwable throwable, @PathParam("deviceType") String deviceType, @PathParam public void onError(Session session, Throwable throwable, @PathParam("deviceType") String deviceType, @PathParam

@ -72,7 +72,7 @@ public class DeviceSessionSubscriptionEndpoint extends SubscriptionEndpoint {
* Web socket onMessage use when device sends a string message * Web socket onMessage use when device sends a string message
* *
* @param session - Registered session. * @param session - Registered session.
* @param message - Status code for web-socket close. * @param message - String message which needs to send to peer
* @param deviceType - DeviceType * @param deviceType - DeviceType
* @param deviceId - Device Identifier * @param deviceId - Device Identifier
*/ */
@ -86,10 +86,9 @@ public class DeviceSessionSubscriptionEndpoint extends SubscriptionEndpoint {
* Web socket onMessage use when device sends a byte message * Web socket onMessage use when device sends a byte message
* *
* @param session - Registered session. * @param session - Registered session.
* @param message - Status code for web-socket close. * @param message - Byte message which needs to send to peer
* @param deviceType - DeviceType * @param deviceType - DeviceType
* @param deviceId - Device Identifier * @param deviceId - Device Identifier
* @param message - Message which needs to send to peer
*/ */
@OnMessage @OnMessage
public void onMessage(Session session, byte[] message, @PathParam("deviceType") String deviceType, @PathParam public void onMessage(Session session, byte[] message, @PathParam("deviceType") String deviceType, @PathParam
@ -98,7 +97,7 @@ public class DeviceSessionSubscriptionEndpoint extends SubscriptionEndpoint {
} }
/** /**
* Web socket onClose - Handle socket connection close * Web socket onClose use to handle socket connection close
* *
* @param session - Registered session. * @param session - Registered session.
* @param deviceType - DeviceType * @param deviceType - DeviceType
@ -112,12 +111,12 @@ public class DeviceSessionSubscriptionEndpoint extends SubscriptionEndpoint {
} }
/** /**
* Web socket onError - Handle socket connection error * Web socket onError use to handle socket connection error
* *
* @param session - Registered session. * @param session - Registered session.
* @param throwable - Web socket exception
* @param deviceType - DeviceType * @param deviceType - DeviceType
* @param deviceId - Device Identifier * @param deviceId - Device Identifier
* @param throwable - Status code for web-socket close.
*/ */
@OnError @OnError
public void onError(Session session, Throwable throwable, @PathParam("deviceType") String deviceType, @PathParam public void onError(Session session, Throwable throwable, @PathParam("deviceType") String deviceType, @PathParam

@ -40,8 +40,7 @@ public class SubscriptionEndpoint {
* *
* @param session - Registered session. * @param session - Registered session.
* @param deviceType - DeviceType * @param deviceType - DeviceType
* @param deviceId - Device Identifier * @param message - String Message which needs to send to peer
* @param message - Status code for web-socket close.
*/ */
public void onMessage(Session session, String message, @PathParam("deviceType") String deviceType, @PathParam public void onMessage(Session session, String message, @PathParam("deviceType") String deviceType, @PathParam
("deviceId") String deviceId) { ("deviceId") String deviceId) {
@ -71,7 +70,7 @@ public class SubscriptionEndpoint {
* @param session - Registered session. * @param session - Registered session.
* @param deviceType - DeviceType * @param deviceType - DeviceType
* @param deviceId - Device Identifier * @param deviceId - Device Identifier
* @param message - Message which needs to send to peer * @param message - Byte Message which needs to send to peer
*/ */
public void onMessage(Session session, byte[] message, @PathParam("deviceType") String deviceType, @PathParam public void onMessage(Session session, byte[] message, @PathParam("deviceType") String deviceType, @PathParam
("deviceId") String deviceId) { ("deviceId") String deviceId) {
@ -96,7 +95,7 @@ public class SubscriptionEndpoint {
} }
/** /**
* Web socket onClose - Handle socket connection close * Web socket onClose use to handle socket connection close
* *
* @param session - Registered session. * @param session - Registered session.
* @param deviceType - DeviceType * @param deviceType - DeviceType
@ -116,12 +115,12 @@ public class SubscriptionEndpoint {
} }
/** /**
* Web socket onError - Handle socket connection error * Web socket onError use to handle socket connection error
* *
* @param session - Registered session. * @param session - Registered session.
* @param throwable - Web socket exception
* @param deviceType - DeviceType * @param deviceType - DeviceType
* @param deviceId - Device Identifier * @param deviceId - Device Identifier
* @param throwable - Status code for web-socket close.
*/ */
public void onError(Session session, Throwable throwable, @PathParam("deviceType") String deviceType, @PathParam public void onError(Session session, Throwable throwable, @PathParam("deviceType") String deviceType, @PathParam
("deviceId") String deviceId) { ("deviceId") String deviceId) {

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
~ Copyright (c) 2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. ~ Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~ ~
~ WSO2 Inc. licenses this file to you under the Apache License, ~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except ~ Version 2.0 (the "License"); you may not use this file except

@ -1,4 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<groupId>org.wso2.carbon.devicemgt-plugins</groupId> <groupId>org.wso2.carbon.devicemgt-plugins</groupId>

@ -1,5 +1,5 @@
# #
# Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. # Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
# #
# WSO2 Inc. licenses this file to you under the Apache License, # WSO2 Inc. licenses this file to you under the Apache License,
# Version 2.0 (the "License"); you may not use this file except # Version 2.0 (the "License"); you may not use this file except

Loading…
Cancel
Save