All Downloads are FREE. Search and download functionalities are using the official Maven repository.

moxproxy.model.MoxProxyRule Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package moxproxy.model;

import moxproxy.builders.MoxProxyRuleBuilder;
import moxproxy.enums.MoxProxyAction;
import moxproxy.enums.MoxProxyDirection;

import java.util.Date;
import java.util.UUID;

public class MoxProxyRule {

    private String sessionId;
    private String id;
    private MoxProxyDirection direction;
    private MoxProxyHttpRuleDefinition moxProxyHttpObject;
    private MoxProxyAction moxProxyAction;
    private Date date;
    //private MoxProxyMatchingStrategy moxProxyMatchingStrategy;

    public MoxProxyRule(){
        id = UUID.randomUUID().toString();
        date = new Date();
    }

    public Date getDate() {
        return date;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getId() {
        return id;
    }

    public MoxProxyDirection getHttpDirection() {
        return direction;
    }

    public void setHttpDirection(MoxProxyDirection htmlObjectType) {
        this.direction = htmlObjectType;
    }

    public MoxProxyHttpRuleDefinition getMoxProxyHttpObject() {
        return moxProxyHttpObject;
    }

    public void setMoxProxyHttpObject(MoxProxyHttpRuleDefinition moxProxyHttpObject) {
        this.moxProxyHttpObject = moxProxyHttpObject;
    }

    public MoxProxyAction getAction() {
        return moxProxyAction;
    }

    public void setAction(MoxProxyAction moxProxyAction) {
        this.moxProxyAction = moxProxyAction;
    }

    public static MoxProxyRuleBuilder builder(){
        return new MoxProxyRuleBuilder();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy