Skip to content

Commit

Permalink
add config param
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy2003 committed Oct 29, 2019
1 parent 84190c5 commit 83518ec
Showing 1 changed file with 29 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class SpqrProperties {
private String[] basePackages;
private boolean abstractInputTypeResolution;
private Relay relay = new Relay();
private MultipartUpload multipartUpload = new MultipartUpload();

// Web properties
private Http http = new Http();
Expand Down Expand Up @@ -88,7 +89,15 @@ public void setGui(Gui gui) {
this.gui = gui;
}

public class Relay {
public MultipartUpload getMultipartUpload() {
return multipartUpload;
}

public void setMultipartUpload(MultipartUpload multipartUpload) {
this.multipartUpload = multipartUpload;
}

public static class Relay {

private boolean enabled;
private String mutationWrapper;
Expand Down Expand Up @@ -128,7 +137,7 @@ public void setConnectionCheckRelaxed(boolean connectionCheckRelaxed) {
}
}

public class Http {
public static class Http {

private boolean enabled = true;
private String endpoint = DEFAULT_ENDPOINT;
Expand All @@ -150,7 +159,7 @@ public void setEndpoint(String endpoint) {
}
}

public class WebSocket {
public static class WebSocket {

private boolean enabled = true;
private String endpoint;
Expand Down Expand Up @@ -212,7 +221,7 @@ public void setIntervalMillis(int intervalMillis) {
}
}

public class Gui {
public static class Gui {

private boolean enabled = true;
private String endpoint = DEFAULT_GUI_ENDPOINT;
Expand Down Expand Up @@ -260,4 +269,20 @@ public void setPageTitle(String pageTitle) {
this.pageTitle = pageTitle;
}
}

public static class MultipartUpload {

private boolean enabled;

public boolean isEnabled() {
return enabled;
}

/**
* @param enabled if enabled a multipart file upload will be activated
*/
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
}
}

0 comments on commit 83518ec

Please sign in to comment.