📄 webforwardform.java
字号:
this.hostHeader = rpwf.getHostHeader();
this.formParameters = rpwf.getFormParameters();
this.formType = rpwf.getFormType();
this.encoding = rpwf.getCharset();
}
}
/*
* (non-Javadoc)
*
* @see com.sslexplorer.tabs.TabModel#getSelectedTab()
*/
public String getSelectedTab() {
return selectedTab;
}
/*
* (non-Javadoc)
*
* @see com.sslexplorer.tabs.TabModel#setSelectedTab(java.lang.String)
*/
public void setSelectedTab(String selectedTab) {
this.selectedTab = selectedTab;
}
/*
* (non-Javadoc)
*
* @see com.sslexplorer.policyframework.forms.AbstractResourceForm#applyToResource()
*/
public void applyToResource() throws Exception {
((AbstractWebForward)getResource()).setCategory(getCategory());
((AbstractWebForward)getResource()).setDestinationURL(getDestinationURL());
if (getType() == WebForward.TYPE_TUNNELED_SITE) {
} else if (getType() == WebForward.TYPE_REPLACEMENT_PROXY) {
((ReplacementProxyWebForward)resource).setAuthenticationUsername(getAuthenticationUsername());
((ReplacementProxyWebForward)resource).setAuthenticationPassword(getAuthenticationPassword());
((ReplacementProxyWebForward)getResource()).setPreferredAuthenticationScheme(getPreferredAuthenticationScheme());
((ReplacementProxyWebForward)getResource()).setEncoding(getEncoding());
((ReplacementProxyWebForward)getResource()).setRestrictToHosts(getRestrictToHostsList());
((ReplacementProxyWebForward)getResource()).setFormType(getFormType());
((ReplacementProxyWebForward)getResource()).setFormParameters(getFormParameters());
} else if (getType() == WebForward.TYPE_REVERSE_PROXY) {
((ReverseProxyWebForward)resource).setAuthenticationUsername(getAuthenticationUsername());
((ReverseProxyWebForward)resource).setAuthenticationPassword(getAuthenticationPassword());
((ReverseProxyWebForward)resource).setPreferredAuthenticationScheme(getPreferredAuthenticationScheme());
((ReverseProxyWebForward)resource).setPaths(getPaths());
((ReverseProxyWebForward)resource).setHostHeader(getHostHeader());
((ReverseProxyWebForward)resource).setActiveDNS(isActiveDNS());
((ReverseProxyWebForward)resource).setFormType(getFormType());
((ReverseProxyWebForward)resource).setFormParameters(getFormParameters());
((ReverseProxyWebForward)resource).setCharset(getEncoding());
}
}
/**
* @return The Web Forward Category.
*/
public String getCategory() {
return category;
}
/**
* @param category The Web Forward Category.
*/
public void setCategory(String category) {
this.category = category;
}
/**
* @return The destination URL.
*/
public String getDestinationURL() {
return destinationURL;
}
/**
* @param destinationURL The destination URL.
*/
public void setDestinationURL(String destinationURL) {
this.destinationURL = destinationURL;
}
/**
* @return The type of web forward.
*/
public int getType() {
return type;
}
/**
* @param type The type of web forward.
*/
public void setType(int type) {
this.type = type;
}
public boolean isActiveDNS() {
return activeDNS;
}
public void setActiveDNS(boolean activeDNS) {
this.activeDNS = activeDNS;
}
public String getAuthenticationPassword() {
return authenticationPassword;
}
public void setAuthenticationPassword(String authenticationPassword) {
this.authenticationPassword = authenticationPassword;
}
public String getAuthenticationUsername() {
return authenticationUsername;
}
public void setAuthenticationUsername(String authenticationUsername) {
this.authenticationUsername = authenticationUsername;
}
public Map getCustomHeaders() {
return customHeaders;
}
public void setCustomHeaders(Map customHeaders) {
this.customHeaders = customHeaders;
}
public String getEncoding() {
return encoding;
}
public void setEncoding(String encoding) {
this.encoding = encoding;
}
public String getPaths() {
return paths;
}
public void setPaths(String paths) {
this.paths = paths;
}
public String getPreferredAuthenticationScheme() {
return preferredAuthenticationScheme;
}
public void setPreferredAuthenticationScheme(String preferredAuthenticationScheme) {
this.preferredAuthenticationScheme = preferredAuthenticationScheme;
}
public String getRestrictToHosts() {
return restrictToHosts.getAsTextFieldText();
}
public PropertyList getRestrictToHostsList() {
return restrictToHosts;
}
public void setRestrictToHosts(String restrictToHosts) {
this.restrictToHosts.setAsTextFieldText(restrictToHosts);
}
public List getPreferredAuthenticationSchemeList() {
return WebForwardTypes.PREFERED_SCHEMES;
}
/*
* (non-Javadoc)
*
* @see com.sslexplorer.tabs.TabModel#getTabTitle(int)
*/
public String getTabTitle(int i) {
return null;
}
public String getHostHeader() {
return hostHeader;
}
public void setHostHeader(String hostHeader) {
this.hostHeader = hostHeader;
}
public void reset(ActionMapping mapping, HttpServletRequest request) {
super.reset(mapping, request);
this.activeDNS = false;
}
public String getFormType() {
return formType;
}
public void setFormType(String formType) {
this.formType = formType;
}
public String getFormParameters() {
return formParameters;
}
public void setFormParameters(String formParameters) {
this.formParameters = formParameters;
}
public List getFormTypeList() {
return WebForwardTypes.FORM_SUBMIT_TYPES;
}
public List getEncodeingTypeList() {
return WebForwardTypes.ENCODING_TYPES;
}
/* (non-Javadoc)
* @see com.sslexplorer.tabs.TabModel#getTabBundle(int)
*/
public String getTabBundle(int idx) {
return null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -