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 {
Response response = invocationBuilder
.header(HttpHeaders.AUTHORIZATION, token.getTokenType() + token.getAccessToken())
.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);
}
......@@ -58,8 +58,8 @@ public class JobServices {
.post(Entity.entity(body, MediaType.APPLICATION_JSON_TYPE), Response.class);
if (response.getStatus() == Response.Status.OK.getStatusCode())
return response.readEntity(String.class);
System.out.println(response.getStatus());
System.out.println(response.readEntity(String.class));
//System.out.println(response.getStatus());
//System.out.println(response.readEntity(String.class));
return null;
}
......@@ -102,7 +102,7 @@ public class JobServices {
break;
else
{
System.out.println(currDate);
//System.out.println(currDate);
currDate = info.getDate();
}
}
......@@ -125,7 +125,7 @@ public class JobServices {
if (response.getStatus() == Response.Status.OK.getStatusCode())
{
String str = response.readEntity(String.class);
System.out.println(str);
//System.out.println(str);
return new Gson().fromJson(str, JobPullInfo.class);
}
return null;
......
......@@ -128,7 +128,7 @@ public class FileExplorer {
WebTarget webTarget = client.target(host);
String fileId = Base64.getEncoder().encodeToString(projectFolderPath.equals("root") ? 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)
.path("link");
......@@ -154,6 +154,7 @@ public class FileExplorer {
ReadableByteChannel rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(destinFileName);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
fos.close();
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
......@@ -171,6 +172,7 @@ public class FileExplorer {
throw new PermissionException();
else if (status == Response.Status.NOT_FOUND.getStatusCode())
throw new ProjectOrFileNotFoundException();
System.out.println(status);
throw new ProjectOrFileNotFoundException();
//System.out.println(status);
}
}
Markdown is supported
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