Skip to content
Permalink
Browse files

init commit

  • Loading branch information...
lukasz-aw committed Jul 14, 2018
0 parents commit e57a61fbded60aee980e5c17ea416ce9b18dded6
@@ -0,0 +1,13 @@
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
.idea/
*.iml
*.iws
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>moxproxy</artifactId>
<groupId>com.moxproxy</groupId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<modelVersion>4.0.0</modelVersion>

<artifactId>moxproxy.abstractions</artifactId>
<packaging>jar</packaging>


</project>
@@ -0,0 +1,23 @@
package dto;

public class MoxProxyHeader {

private String name;
private String value;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getValue() {
return value;
}

public void setValue(String value) {
this.value = value;
}
}
@@ -0,0 +1,50 @@
package dto;

public class MoxProxyHttpObject {

String method;
String path;
String body;
Iterable<MoxProxyHeader> headers;
int statusCode;

public String getMethod() {
return method;
}

public void setMethod(String method) {
this.method = method;
}

public String getPath() {
return path;
}

public void setPath(String path) {
this.path = path;
}

public String getBody() {
return body;
}

public void setBody(String body) {
this.body = body;
}

public Iterable<MoxProxyHeader> getHeaders() {
return headers;
}

public void setHeaders(Iterable<MoxProxyHeader> headers) {
this.headers = headers;
}

public int getStatusCode() {
return statusCode;
}

public void setStatusCode(int statusCode) {
this.statusCode = statusCode;
}
}
@@ -0,0 +1,8 @@
package dto;

public class MoxProxyProcessedTrafficEntry {

private String sessionId;
private MoxProxyHttpObject request;
private MoxProxyHttpObject response;
}
@@ -0,0 +1,20 @@
package interfaces;

import dto.MoxProxyProcessedTrafficEntry;

public interface IMoxProxyService {

Iterable<MoxProxyProcessedTrafficEntry> getSessionNetworkTraffic(String sessionId);

Iterable<MoxProxyProcessedTrafficEntry> getAllNetworkTraffic();

String replaceEntry(MoxProxyProcessedTrafficEntry moxProxyRequest);

String modifyEntry(MoxProxyProcessedTrafficEntry moxProxyRequest);

void cancelRule(String actionId);

void clearSessionEntries(String sessionId);

void clearAllSessionEntries();
}
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>moxproxy</artifactId>
<groupId>com.moxproxy</groupId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<modelVersion>4.0.0</modelVersion>

<artifactId>moxproxy.client</artifactId>
<packaging>jar</packaging>


</project>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>moxproxy</artifactId>
<groupId>com.moxproxy</groupId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>moxproxy.server</artifactId>

</project>
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>moxproxy</artifactId>
<groupId>com.moxproxy</groupId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<modelVersion>4.0.0</modelVersion>

<artifactId>moxproxy.service</artifactId>

<dependencies>
<dependency>
<groupId>com.moxproxy</groupId>
<artifactId>moxproxy.abstractions</artifactId>
<version>${parent.version}</version>
</dependency>
<dependency>
<groupId>org.littleshoot</groupId>
<artifactId>littleproxy</artifactId>
<version>1.1.2</version>
</dependency>
</dependencies>

</project>
@@ -0,0 +1,41 @@
package services;

import dto.MoxProxyProcessedTrafficEntry;
import interfaces.IMoxProxyService;

public class MoxProxyService implements IMoxProxyService {

@Override
public Iterable<MoxProxyProcessedTrafficEntry> getSessionNetworkTraffic(String sessionId) {
return null;
}

@Override
public Iterable<MoxProxyProcessedTrafficEntry> getAllNetworkTraffic() {
return null;
}

@Override
public String replaceEntry(MoxProxyProcessedTrafficEntry moxProxyRequest) {
return null;
}

@Override
public String modifyEntry(MoxProxyProcessedTrafficEntry moxProxyRequest) {
return null;
}

@Override
public void cancelRule(String actionId) {

}

@Override
public void clearSessionEntries(String sessionId) {
}

@Override
public void clearAllSessionEntries() {

}
}
56 pom.xml
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.moxproxy</groupId>
<artifactId>moxproxy</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<modules>
<module>moxproxy.abstractions</module>
<module>moxproxy.client</module>
<module>moxproxy.server</module>
<module>moxproxy.service</module>
</modules>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.3.RELEASE</version>
</parent>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<release>10</release>
</configuration>
<!-- <dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>6.2</version>
</dependency>
</dependencies>-->
</plugin>
</plugins>
</build>

</project>

0 comments on commit e57a61f

Please sign in to comment.
You can’t perform that action at this time.