Shahar Havivi has posted comments on this change.

Change subject: java sample portal: first commit
......................................................................


Patch Set 1: (4 inline comments)

....................................................
File 
java/javauserportal/src/main/java/org/ovirt/samples/portals/javauserportal/LoginRestCommand.java
Line 3: import java.io.InputStream;
Line 4: 
Line 5: public class LoginRestCommand extends RestCommand {
Line 6: 
Line 7:         private boolean loggedin = false;
Done
Line 8:         
Line 9:         public LoginRestCommand(String url, String userName, String 
password) {
Line 10:                super(url, userName, password);
Line 11:        }


....................................................
File 
java/javauserportal/src/main/java/org/ovirt/samples/portals/javauserportal/RestClient.java
Line 14: import org.apache.commons.httpclient.methods.StringRequestEntity;
Line 15: import org.apache.commons.httpclient.params.HttpMethodParams;
Line 16: 
Line 17: public class RestClient {
Line 18:        public void doGetCommand(RestCommand command) {
Done
Line 19:         HttpClient client = new HttpClient();
Line 20:         GetMethod method = new GetMethod(command.getUrl());
Line 21:         method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,
Line 22:                 new DefaultHttpMethodRetryHandler(3, false));


....................................................
File 
java/javauserportal/src/main/java/org/ovirt/samples/portals/javauserportal/RestCommand.java
Line 8: public abstract class RestCommand {
Line 9:     protected String url;
Line 10:     protected String message;
Line 11:     private String cookie;
Line 12:     private Credentials credentials;
Done
Line 13: 
Line 14:     public RestCommand(String url, String userName, String password) {
Line 15:         this.url = url;
Line 16:         this.message = "";


....................................................
File java/javauserportal/src/main/webapp/WEB-INF/web.xml
Line 2:  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
Line 3:  "http://java.sun.com/dtd/web-app_2_3.dtd"; >
Line 4: 
Line 5: <web-app>
Line 6:   <display-name>Archetype Created Web Application</display-name>
Done


--
To view, visit http://gerrit.ovirt.org/9520
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I225d5b71e831c80cd7351161529f0f695e8d201a
Gerrit-PatchSet: 1
Gerrit-Project: samples-portals
Gerrit-Branch: master
Gerrit-Owner: Shahar Havivi <shav...@redhat.com>
Gerrit-Reviewer: Einav Cohen <eco...@redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com>
Gerrit-Reviewer: Shahar Havivi <shav...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to