Commit 107d8b31 authored by Erica Freitas de Linhares e Riello's avatar Erica Freitas de Linhares e Riello
Browse files

removendo logs desnecessários

parent ef265f78
...@@ -37,7 +37,7 @@ public class JobServices { ...@@ -37,7 +37,7 @@ public class JobServices {
Response response = invocationBuilder Response response = invocationBuilder
.header(HttpHeaders.AUTHORIZATION, token.getTokenType() + token.getAccessToken()) .header(HttpHeaders.AUTHORIZATION, token.getTokenType() + token.getAccessToken())
.post(Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED_TYPE), Response.class); .post(Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED_TYPE), Response.class);
System.out.println("jobSession response status "+response.getStatus()); //System.out.println("jobSession response status "+response.getStatus());
return new Gson().fromJson(response.readEntity(String.class), JobSession.class); return new Gson().fromJson(response.readEntity(String.class), JobSession.class);
} }
...@@ -58,8 +58,8 @@ public class JobServices { ...@@ -58,8 +58,8 @@ public class JobServices {
.post(Entity.entity(body, MediaType.APPLICATION_JSON_TYPE), Response.class); .post(Entity.entity(body, MediaType.APPLICATION_JSON_TYPE), Response.class);
if (response.getStatus() == Response.Status.OK.getStatusCode()) if (response.getStatus() == Response.Status.OK.getStatusCode())
return response.readEntity(String.class); return response.readEntity(String.class);
System.out.println(response.getStatus()); //System.out.println(response.getStatus());
System.out.println(response.readEntity(String.class)); //System.out.println(response.readEntity(String.class));
return null; return null;
} }
...@@ -102,7 +102,7 @@ public class JobServices { ...@@ -102,7 +102,7 @@ public class JobServices {
break; break;
else else
{ {
System.out.println(currDate); //System.out.println(currDate);
currDate = info.getDate(); currDate = info.getDate();
} }
} }
...@@ -125,7 +125,7 @@ public class JobServices { ...@@ -125,7 +125,7 @@ public class JobServices {
if (response.getStatus() == Response.Status.OK.getStatusCode()) if (response.getStatus() == Response.Status.OK.getStatusCode())
{ {
String str = response.readEntity(String.class); String str = response.readEntity(String.class);
System.out.println(str); //System.out.println(str);
return new Gson().fromJson(str, JobPullInfo.class); return new Gson().fromJson(str, JobPullInfo.class);
} }
return null; return null;
......
...@@ -128,7 +128,7 @@ public class FileExplorer { ...@@ -128,7 +128,7 @@ public class FileExplorer {
WebTarget webTarget = client.target(host); WebTarget webTarget = client.target(host);
String fileId = Base64.getEncoder().encodeToString(projectFolderPath.equals("root") ? fileName.getBytes() String fileId = Base64.getEncoder().encodeToString(projectFolderPath.equals("root") ? fileName.getBytes()
: (projectFolderPath + (fileName == null ? "" : "/" + fileName)).getBytes()); : (projectFolderPath + (fileName == null ? "" : "/" + fileName)).getBytes());
System.out.println(fileId); //System.out.println(fileId);
WebTarget uploadTarget = webTarget.path("projects").path(project.getId()).path("files").path(fileId) WebTarget uploadTarget = webTarget.path("projects").path(project.getId()).path("files").path(fileId)
.path("link"); .path("link");
...@@ -154,6 +154,7 @@ public class FileExplorer { ...@@ -154,6 +154,7 @@ public class FileExplorer {
ReadableByteChannel rbc = Channels.newChannel(website.openStream()); ReadableByteChannel rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(destinFileName); FileOutputStream fos = new FileOutputStream(destinFileName);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
fos.close();
} catch (MalformedURLException e) { } catch (MalformedURLException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
...@@ -171,6 +172,7 @@ public class FileExplorer { ...@@ -171,6 +172,7 @@ public class FileExplorer {
throw new PermissionException(); throw new PermissionException();
else if (status == Response.Status.NOT_FOUND.getStatusCode()) else if (status == Response.Status.NOT_FOUND.getStatusCode())
throw new ProjectOrFileNotFoundException(); throw new ProjectOrFileNotFoundException();
System.out.println(status); throw new ProjectOrFileNotFoundException();
//System.out.println(status);
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment