]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/src/org/simantics/databoard/channel/ServiceRequest.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / src / org / simantics / databoard / channel / ServiceRequest.java
index 68dd5c73d6647b84d683810581d0cde2fcfd9a60..e5a3b7e99d150391888c6112bbf37f0e874397e5 100644 (file)
@@ -1,59 +1,59 @@
-package org.simantics.databoard.channel;\r
-\r
-import org.simantics.databoard.binding.Binding;\r
-\r
-/**\r
- * This interface is intended to be used by service handler implementations.\r
- *\r
- * @author Toni Kalajainen <toni.kalajainen@iki.fi>\r
- */\r
-public interface ServiceRequest {\r
-       \r
-       /**\r
-        * Context is an idetification of the requester. The actual implementation\r
-        * depends on the implementation of the channel. \r
-     *   \r
-     * For example: TCP based implementation can publish user identification, \r
-     * security policy, application instance certificate, session identifier, \r
-     * socket address, etc..\r
-        * \r
-     * Application local implementation may carry no data. <p>\r
-        * \r
-        * @return client context\r
-        */\r
-       Object getClientContext();\r
-       \r
-       /**\r
-        * Get the command specification of the request.\r
-        *  \r
-        * The identifier of the spec is a well-known id of the requested service.\r
-        * \r
-        * @return command specification\r
-        */\r
-       CommandSpec getCommandSpec();\r
-       \r
-       /**\r
-        * Get an access to the request object.\r
-        * \r
-        * @param binding \r
-        * @return access to request\r
-        */\r
-       Object getRequest(Binding binding);\r
-       \r
-       /**\r
-        * Send a successful result. Result can be sent from any thread but only once.\r
-        * \r
-        * @param binding\r
-        * @param result\r
-        */\r
-       void sendResult( Binding binding, Object result );\r
-       \r
-       /**\r
-        * Send an error result. Result can be sent from any thread but only once. \r
-        * \r
-        * @param binding\r
-        * @param error\r
-        */\r
-       void sendError( Binding binding, Object error );                \r
-               \r
-}\r
+package org.simantics.databoard.channel;
+
+import org.simantics.databoard.binding.Binding;
+
+/**
+ * This interface is intended to be used by service handler implementations.
+ *
+ * @author Toni Kalajainen <toni.kalajainen@iki.fi>
+ */
+public interface ServiceRequest {
+       
+       /**
+        * Context is an idetification of the requester. The actual implementation
+        * depends on the implementation of the channel. 
+     *   
+     * For example: TCP based implementation can publish user identification, 
+     * security policy, application instance certificate, session identifier, 
+     * socket address, etc..
+        * 
+     * Application local implementation may carry no data. <p>
+        * 
+        * @return client context
+        */
+       Object getClientContext();
+       
+       /**
+        * Get the command specification of the request.
+        *  
+        * The identifier of the spec is a well-known id of the requested service.
+        * 
+        * @return command specification
+        */
+       CommandSpec getCommandSpec();
+       
+       /**
+        * Get an access to the request object.
+        * 
+        * @param binding 
+        * @return access to request
+        */
+       Object getRequest(Binding binding);
+       
+       /**
+        * Send a successful result. Result can be sent from any thread but only once.
+        * 
+        * @param binding
+        * @param result
+        */
+       void sendResult( Binding binding, Object result );
+       
+       /**
+        * Send an error result. Result can be sent from any thread but only once. 
+        * 
+        * @param binding
+        * @param error
+        */
+       void sendError( Binding binding, Object error );                
+               
+}