-
-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 make sure the right content type are set when creating developer
profile type credentials
- Loading branch information
Wei Li
committed
Jul 7, 2017
1 parent
4a2e61a
commit 8058758
Showing
3 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
jenkins-client/src/main/java/com/offbytwo/jenkins/client/FormBinaryField.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.offbytwo.jenkins.client; | ||
|
||
public class FormBinaryField { | ||
private String fileName; | ||
private String contentType; | ||
private byte[] content; | ||
|
||
public FormBinaryField(String fileName, String contentType, byte[] content) { | ||
this.fileName = fileName; | ||
this.contentType = contentType; | ||
this.content = content; | ||
} | ||
|
||
public String getFileName() { | ||
return fileName; | ||
} | ||
|
||
public String getContentType() { | ||
return contentType; | ||
} | ||
|
||
public byte[] getContent() { | ||
return content; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters