31 lines
654 B
Java
31 lines
654 B
Java
package com.banesco.commons.model;
|
|
|
|
import io.quarkus.runtime.annotations.RegisterForReflection;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Data;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
@Data
|
|
@AllArgsConstructor
|
|
@NoArgsConstructor
|
|
@RegisterForReflection
|
|
public class SoapEndpoint {
|
|
|
|
private String domain;
|
|
private String path;
|
|
private String soapAction;
|
|
|
|
private Timeout timeout;
|
|
|
|
@Data
|
|
@AllArgsConstructor
|
|
@NoArgsConstructor
|
|
public static class Timeout {
|
|
private int connect = 15000;
|
|
private int response = 15000;
|
|
}
|
|
|
|
public String getUrl(String domain) {
|
|
return domain.concat(path);
|
|
}
|
|
} |