1 19 20 package com.sslexplorer.webforwards; 21 22 import java.util.Calendar ; 23 24 import com.sslexplorer.policyframework.AbstractResource; 25 26 29 public abstract class AbstractWebForward extends AbstractResource implements WebForward { 30 31 private int type; 32 private String destinationURL; 33 private String category; 34 35 public AbstractWebForward(int realmID, int id, int type, String destinationURL, String shortName, String description, String category, 36 Calendar dateCreated, Calendar dateAmended) { 37 super(realmID, WebForwardPlugin.WEBFORWARD_RESOURCE_TYPE, id, shortName, description, dateCreated, 38 dateAmended); 39 this.type = type; 40 this.destinationURL = destinationURL; 41 this.category = category; 42 } 43 44 public String getCategory() { 45 return category; 46 } 47 48 public void setCategory(String category) { 49 this.category = category; 50 } 51 52 public String getDestinationURL() { 53 return destinationURL; 54 } 55 56 public void setDestinationURL(String destinationURL) { 57 this.destinationURL = destinationURL; 58 } 59 60 public int getType() { 61 return type; 62 } 63 64 public void setType(int type) { 65 this.type = type; 66 } 67 68 public boolean paramsRequirePassword() { 69 if (destinationURL.contains("${session:password}")){ 70 return true; 71 } 72 else{ 73 return false; 74 } 75 } 76 77 } 78 | Popular Tags |