You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: amqp-0-9-1/doc/p_dev_java_client_amqp.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ To Use the Java AMQP Client Library
28
28
1. Set up your development environment.
29
29
30
30
1. Ensure you have a Java IDE, such as Eclipse, which can be downloaded from <http://www.eclipse.org/downloads/>.
31
-
2. If you haven't done so already, download and install KAAZING Gateway, as described in [Setting Up KAAZING Gateway](../about/setup-guide.md), or a RFC-6455 WebSocket endpoint that supports AMQP 0-9-1.
31
+
2. If you haven't done so already, download and install KAAZING Gateway, as described in [Setting Up KAAZING Gateway](https://github.com/kaazing/gateway/blob/develop/doc/about/setup-guide.md), or a RFC-6455 WebSocket endpoint that supports AMQP 0-9-1.
32
32
3. To develop clients using the KAAZING Gateway Java AMQP client library, you must configure the Gateway or RFC-6455 WebSocket endpoint to communicate with an AMQP broker.
33
33
34
34
The following is an example of a configuration element for the AMQP service in the KAAZING Gateway, as specified in the configuration file `GATEWAY_HOME/conf/gateway-config.xml`:
Copy file name to clipboardExpand all lines: ws/doc/o_dev_java.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ Taking a Look at the Java Client Demo
42
42
43
43
Before you start, take a look at an out of the box demo built using the Java client library: the Java applet that is part of the KAAZING Gateway bundle. To see this Java applet in action, perform the following steps:
44
44
45
-
1. Start the Gateway as described in [Setting Up KAAZING Gateway](../about/setup-guide.md).
45
+
1. Start the Gateway as described in [Setting Up KAAZING Gateway](https://github.com/kaazing/gateway/blob/develop/doc/about/setup-guide.md).
46
46
2. In a browser, navigate to the out of the box demos at `http://localhost:8001/demo/`.
47
47
3. Click **Java** and follow the instructions.
48
48
@@ -51,7 +51,7 @@ The out of the box Java demo shows WebSocket being used in a Java environment.
51
51
Taking a Look at the Java Client Demo Using Eclipse
Running the out of the box Java demo in Eclipse enables you to see the code and a working Java client. The KAAZING Gateway download (the full download, not the “base” download) includes the demo files, and these can be easily added to an Eclipse project using the following steps (for download information, see **What are my download options?** in [Setting Up KAAZING Gateway](../about/setup-guide.md)):
54
+
Running the out of the box Java demo in Eclipse enables you to see the code and a working Java client. The KAAZING Gateway download (the full download, not the “base” download) includes the demo files, and these can be easily added to an Eclipse project using the following steps (for download information, see **What are my download options?** in [Setting Up KAAZING Gateway](https://github.com/kaazing/gateway/blob/develop/doc/about/setup-guide.md)):
55
55
56
56
1. Open Eclipse. If you do have Eclipse, you can [download it](http://www.eclipse.org/downloads/"Eclipse Downloads") and install it.
57
57
2. In Eclipse, in the **File** menu, click **New**, and then click **Java Project**.
@@ -65,7 +65,7 @@ Running the out of the box Java demo in Eclipse enables you to see the code and
10. Copy the files named **LoginDialog.java** and **WebSocketFrame.java**.
67
67
11. In Eclipse, right-click the **org.kaazing.net.ws.demo** package under the **src** folder in your new project, and click **Paste**. The demo source files are added to the package.
68
-
12. Start the Gateway as described in **How do I start and stop the Gateway?** in [Setting Up KAAZING Gateway](../about/setup-guide.md).
68
+
12. Start the Gateway as described in **How do I start and stop the Gateway?** in [Setting Up KAAZING Gateway](https://github.com/kaazing/gateway/blob/develop/doc/about/setup-guide.md).
69
69
13. In Eclipse, from the **Run** menu, click **Run As** and then **Java Application**. (By default, Eclipse should be configured to build the project automatically. If you receive a build error, from the **Project** menu, click **Build Project**.)
70
70
71
71
The Java client launches in a new window titled **WebSocket Echo Demo**.
Copy file name to clipboardExpand all lines: ws/doc/p_dev_java_eventsource.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Use the Java EventSource API
9
9
10
10
This procedure describes how you can use the `EventSource` API--provided by the Kaazing Java client library--in Java. This API allows you to take advantage of the server-sent events standard as described in the [HTML5 specification](http://www.w3.org/html/wg/html5/#server-sent-events). For example, you can create a Java applet or stand-alone Java application that uses the Java HTML5 Communications client library to receive streaming data from a news feed or streaming financial data. The support for server-sent events is provided by the `EventSource` class and its supporting classes.
11
11
12
-
The following steps show you how to use the `EventSource` API in a Java applet or stand-alone Java application. This example highlights some of the most commonly used `EventSource` methods and is not meant to be an end-to-end tutorial. Refer to the [EventSource API documentation](../apidoc/client/java/gateway/index.md) for a complete description of all the available methods. View the out of the box Server Sent Events demo code in `GATEWAY_HOME/demo/java/src/core/com/kaazing/net/sse/demo/ServerSentEventsApplet.java`. The example code below is taken from this demo.
12
+
The following steps show you how to use the `EventSource` API in a Java applet or stand-alone Java application. This example highlights some of the most commonly used `EventSource` methods and is not meant to be an end-to-end tutorial. Refer to the [EventSource API documentation](http://developer.kaazing.com/documentation/5.0/apidoc/client/java/gateway/index.html) for a complete description of all the available methods. View the out of the box Server Sent Events demo code in `GATEWAY_HOME/demo/java/src/core/com/kaazing/net/sse/demo/ServerSentEventsApplet.java`. The example code below is taken from this demo.
Copy file name to clipboardExpand all lines: ws/doc/p_dev_java_logging.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ To Enable the Java Client Logs
49
49
- In Windows, in the Java Control Panel, on the **Advanced** tab, choose **Java console**, then select **Show console**.
50
50
- On Mac OS X, for Java 7 (required), access the **Java** system preference in **System Preferences**, click **Advanced**, and under **Debugging**, click **Enable logging**. Then, under **Java console**, select **Show console**.
51
51
52
-
6. Start the Gateway as described in [Setting Up KAAZING Gateway](../about/setup-guide.md).
52
+
6. Start the Gateway as described in [Setting Up KAAZING Gateway](https://github.com/kaazing/gateway/blob/develop/doc/about/setup-guide.md).
53
53
7. Restart the browser and use the out of the box Java Echo Demo.
54
54
8. In a browser, navigate to the out of the box demos at `http://localhost:8001/demo/`, click **Java** and follow the instructions. The Java Console will open and display all logs from the Java Client.
Copy file name to clipboardExpand all lines: ws/doc/p_dev_java_secure.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ This topic provides information on how to add user authentication functionality
9
9
10
10
A challenge handler is a constructor used in an application to respond to authentication challenges from the Gateway when the application attempts to access a protected resource. Each of the resources protected by the Gateway is configured with a different authentication scheme (for example, Basic, Application Basic, Application Negotiate, or Application Token), and your application requires a challenge handler for each of the schemes that it will encounter or a single challenge handler that will respond to all challenges. Also, you can add a dispatch challenge handler to route challenges to specific challenge handlers according to the URI of the requested resource.
11
11
12
-
For information about each authentication scheme type, see [Configure the HTTP Challenge Scheme](../security/p_aaa_config_authscheme.md).
12
+
For information about each authentication scheme type, see [Configure the HTTP Challenge Scheme](https://github.com/kaazing/gateway/blob/develop/doc/security/p_authentication_config_http_challenge_scheme.md).
13
13
14
-
Before you add security to your clients, follow the steps in [Secure Network Traffic with the Gateway](../security/o_tls.md) and [Configure Authentication and Authorization](../security/o_aaa_config_authentication.md) to set up security on KAAZING Gateway for your client. The authentication and authorization methods configured on the Gateway influence your client security implementation. In this procedure, we provide an example of the most common implementation.
14
+
Before you add security to your clients, follow the steps in [Secure Network Traffic with the Gateway](../security/o_tls.md) and [Configure Authentication and Authorization](https://github.com/kaazing/gateway/blob/develop/doc/security/o_auth_configure.md) to set up security on KAAZING Gateway for your client. The authentication and authorization methods configured on the Gateway influence your client security implementation. In this procedure, we provide an example of the most common implementation.
15
15
16
16
17
17
To Secure Your Java and Android Clients
@@ -40,7 +40,7 @@ A challenge handler is responsible for producing responses to authentication cha
40
40
2. The authentication request and the header are converted into a ChallengeRequest (as defined in RFC 2617) and sent to a challenge handler registered in the client application for authentication challenge responses.
41
41
3. The ChallengeResponse credentials generated by a registered challenge handler are included in a replay of the original request to the Gateway, which allows access to the resource (assuming the credentials are sufficient).
42
42
43
-
Authenticating your Java client involves implementing a [challenge handler](../apidoc/client/java/gateway/com/kaazing/net/auth/ChallengeHandler.md) to respond to authentication challenges from the Gateway. If your challenge handler is responsible for obtaining user credentials, then implement a [login handler](../apidoc/client/java/gateway/com/kaazing/net/auth/LoginHandler.md).
43
+
Authenticating your Java client involves implementing a [challenge handler](../apidoc/client/java/gateway/com/kaazing/net/auth/ChallengeHandler.md) to respond to authentication challenges from the Gateway. If your challenge handler is responsible for obtaining user credentials, then implement a [login handler](http://developer.kaazing.com/documentation/5.0/apidoc/client/java/gateway/com/kaazing/net/auth/LoginHandler.html).
@@ -136,7 +136,7 @@ There are two methods used in ChallengeHandler:
136
136
- `canHandle(ChallengeRequest challengeRequest)` determines if the challenge handler can handle the authentication scheme required by the Gateway (for example, Basic, ApplicationBasic, Negotiate, ApplicationNegotiate, or ApplicationToken).The method takes a ChallengeRequest object containing a challenge and returns trueif the challenge handler has the potential to respond meaningfully to the challenge. Ifthis method determines that the challenge handler can handle the authentication scheme, it returns true and the `handle()` method is used. Ifthis method returns false, the ChallengeHandler class (that contains all of the registered individual ChallengeHandler objects) continues looking for a ChallengeHandler to handle the request.
137
137
- `handle(ChallengeRequest challengeRequest)` handles the authentication challenge by returning a challenge response. Typically, the challenge response invokes a login handler to collect user credentials and transforms that information into a ChallengeResponse object. TheChallengeResponse sends the credentials to the Gateway in an Authorization header and notifies the Gateway on what challenge handler to use for future requests. If `handle()` cannot create a challenge response, it returns `null`.
138
138
139
-
For information about each authentication scheme type, see [Configure the HTTPChallengeScheme](../security/p_aaa_config_authscheme.md).
139
+
For information about each authentication scheme type, see [Configure the HTTPChallengeScheme](https://github.com/kaazing/gateway/blob/develop/doc/security/p_authentication_config_http_challenge_scheme.md).
**Cause:**[Kerberos challenge handlers](p_dev_java_secure.md#kerberos_challenge) might not work for one or more of the following reasons:
33
+
**Cause:**[Kerberos challenge handlers](https://github.com/kaazing/java.client/blob/develop/ws/doc/p_dev_java_secure.md#creating-kerberos-challenge-handlers) might not work for one or more of the following reasons:
34
34
35
35
- The client cannot connect to the Kerberos Domain Controller (KDC).
36
36
@@ -60,7 +60,7 @@ Kerberos challenge handler not working
60
60
61
61
- Service name is in the incorrect format in the Kerberos challenge handler code.
62
62
63
-
**Solution:** The service name should be in the format: `HTTP/servergw.hostname.com`. See [Creating Kerberos Challenge Handlers](p_dev_java_secure.md#kerberos_challenge) for examples.
63
+
**Solution:** The service name should be in the format: `HTTP/servergw.hostname.com`. See [Creating Kerberos Challenge Handlers](https://github.com/kaazing/java.client/blob/develop/ws/doc/p_dev_java_secure.md#creating-kerberos-challenge-handlers) for examples.
64
64
65
65
- The pop-up dialog in the client used to obtain user credentials does not ensure that the username format is correct.
Copy file name to clipboardExpand all lines: ws/doc/p_dev_java_websocket.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ There are two examples in this topic to show you how to use the WebSocket API in
22
22
-[To Use the WebSocket API in Java](#to-use-the-websocket-api-in-java): The first example is a brief, general example of how your client can invoke the interfaces sequentially. The relevant interface will block the next interface until it has been successful or it will throw an exception.
23
23
-[Build the Java API Client Demo](#build-the-java-api-client-demo): The second example provides the steps to create a standalone Java client, including the steps needed to compile and run the interface in Eclipse.
24
24
25
-
Refer to the [Java AP](../apidoc/client/java/gateway/index.md)I documentation for a complete description of all the available methods.
25
+
Refer to the [Java API](http://developer.kaazing.com/documentation/5.0/apidoc/client/java/gateway/index.html) documentation for a complete description of all the available methods.
26
26
27
27
Before You Begin
28
28
----------------
@@ -220,7 +220,7 @@ The URLFactory class is included to support custom protocols and schemes not sup
220
220
- A specified protocol name, host name, port number, and file name.
221
221
222
222
</p>
223
-
For more information about the URLFactory class, see the KAAZING Gateway [Java WebSocket API](../apidoc/client/java/gateway/index.md).
223
+
For more information about the URLFactory class, see the KAAZING Gateway [Java WebSocket API](http://developer.kaazing.com/documentation/5.0/apidoc/client/java/gateway/index.html).
224
224
225
225
Setting and Overriding Defaults on the WebSocketFactory
@@ -378,7 +378,7 @@ The following procedure uses the Eclipse IDE. You can download Eclipse from [www
378
378
import org.kaazing.net.ws.WebSocketMessageWriter;
379
379
```
380
380
381
-
For information about these classes, see the [Java WebSocket API](../apidoc/client/java/gateway/index.md).
381
+
For information about these classes, see the [Java WebSocket API](http://developer.kaazing.com/documentation/5.0/apidoc/client/java/gateway/index.html).
382
382
383
383
6. Change the default classstatement that was generated by Eclipse to:
384
384
@@ -837,7 +837,7 @@ The following procedure uses the Eclipse IDE. You can download Eclipse from [www
837
837
Eclipse has real-time error checking to inform you of any missing syntax elements.
838
838
839
839
23.Save the client in Eclipse.
840
-
24.Start the Gateway as described in **HowdoI start and stop the Gateway?** in [[SettingUpKAAZINGGateway](../about/setup-guide.md)](../about/setup-guide.md).
840
+
24.Start the Gateway as described in **HowdoI start and stop the Gateway?** in [SettingUpKAAZINGGateway](https://github.com/kaazing/gateway/blob/develop/doc/about/setup-guide.md).
841
841
25.Test your new client. In Eclipse, in the **Run** menu, click **Run**. The Java client launches. The **Location** field contains a URI for the Echo service running on the Gateway using the WebSocket scheme, ws://: `ws://localhost:8001/echo`.
0 commit comments