本文整理了Java中com.jcraft.jsch.JSch.getConfigRepository()
方法的一些代码示例,展示了JSch.getConfigRepository()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSch.getConfigRepository()
方法的具体详情如下:
包路径:com.jcraft.jsch.JSch
类名称:JSch
方法名:getConfigRepository
暂无
代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit
if (defaultJSch == null) {
defaultJSch = createDefaultJSch(fs);
if (defaultJSch.getConfigRepository() == null) {
defaultJSch.setConfigRepository(
new JschBugFixingConfigRepository(config));
jsch = new JSch();
configureJSch(jsch);
if (jsch.getConfigRepository() == null) {
jsch.setConfigRepository(defaultJSch.getConfigRepository());
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch
private void applyConfigChannel(ChannelSession channel) throws JSchException {
ConfigRepository configRepository = jsch.getConfigRepository();
if(configRepository == null){
return;
}
ConfigRepository.Config config =
configRepository.getConfig(org_host);
String value = null;
value = config.getValue("ForwardAgent");
if(value != null){
channel.setAgentForwarding(value.equals("yes"));
}
value = config.getValue("RequestTTY");
if(value != null){
channel.setPty(value.equals("yes"));
}
}
代码示例来源:origin: org.xbib/jsch-core
private void applyConfigChannel(ChannelSession channel) throws JSchException {
ConfigRepository configRepository = jsch.getConfigRepository();
if (configRepository == null) {
return;
}
ConfigRepository.Config config =
configRepository.getConfig(org_host);
String value = null;
value = config.getValue("ForwardAgent");
if (value != null) {
channel.setAgentForwarding(value.equals("yes"));
}
value = config.getValue("RequestTTY");
if (value != null) {
channel.setPty(value.equals("yes"));
}
}
代码示例来源:origin: org.mule.jsch/jsch
private void applyConfigChannel(ChannelSession channel) throws JSchException {
ConfigRepository configRepository = jsch.getConfigRepository();
if(configRepository == null){
return;
}
ConfigRepository.Config config =
configRepository.getConfig(org_host);
String value = null;
value = config.getValue("ForwardAgent");
if(value != null){
channel.setAgentForwarding(value.equals("yes"));
}
value = config.getValue("RequestTTY");
if(value != null){
channel.setPty(value.equals("yes"));
}
}
代码示例来源:origin: ePaul/jsch-documentation
private void applyConfigChannel(ChannelSession channel) throws JSchException {
ConfigRepository configRepository = jsch.getConfigRepository();
if(configRepository == null){
return;
}
ConfigRepository.Config config =
configRepository.getConfig(org_host);
String value = null;
value = config.getValue("ForwardAgent");
if(value != null){
channel.setAgentForwarding(value.equals("yes"));
}
value = config.getValue("RequestTTY");
if(value != null){
channel.setPty(value.equals("yes"));
}
}
代码示例来源:origin: berlam/github-bucket
if (defaultJSch == null) {
defaultJSch = createDefaultJSch(fs);
if (defaultJSch.getConfigRepository() == null) {
defaultJSch.setConfigRepository(
new JschBugFixingConfigRepository(config));
jsch = new JSch();
configureJSch(jsch);
if (jsch.getConfigRepository() == null) {
jsch.setConfigRepository(defaultJSch.getConfigRepository());
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch
private void requestPortForwarding() throws JSchException {
if(getConfig("ClearAllForwardings").equals("yes"))
return;
ConfigRepository configRepository = jsch.getConfigRepository();
if(configRepository == null){
return;
}
ConfigRepository.Config config =
configRepository.getConfig(org_host);
String[] values = config.getValues("LocalForward");
if(values != null){
for(int i = 0; i < values.length; i++) {
setPortForwardingL(values[i]);
}
}
values = config.getValues("RemoteForward");
if(values != null){
for(int i = 0; i < values.length; i++) {
setPortForwardingR(values[i]);
}
}
}
代码示例来源:origin: ePaul/jsch-documentation
private void requestPortForwarding() throws JSchException {
if(getConfig("ClearAllForwardings").equals("yes"))
return;
ConfigRepository configRepository = jsch.getConfigRepository();
if(configRepository == null){
return;
}
ConfigRepository.Config config =
configRepository.getConfig(org_host);
String[] values = config.getValues("LocalForward");
if(values != null){
for(int i = 0; i < values.length; i++) {
setPortForwardingL(values[i]);
}
}
values = config.getValues("RemoteForward");
if(values != null){
for(int i = 0; i < values.length; i++) {
setPortForwardingR(values[i]);
}
}
}
代码示例来源:origin: org.mule.jsch/jsch
private void requestPortForwarding() throws JSchException {
if(getConfig("ClearAllForwardings").equals("yes"))
return;
ConfigRepository configRepository = jsch.getConfigRepository();
if(configRepository == null){
return;
}
ConfigRepository.Config config =
configRepository.getConfig(org_host);
String[] values = config.getValues("LocalForward");
if(values != null){
for(int i = 0; i < values.length; i++) {
setPortForwardingL(values[i]);
}
}
values = config.getValues("RemoteForward");
if(values != null){
for(int i = 0; i < values.length; i++) {
setPortForwardingR(values[i]);
}
}
}
代码示例来源:origin: org.xbib/jsch-core
private void requestPortForwarding() throws JSchException {
if (getConfig("ClearAllForwardings").equals("yes"))
return;
ConfigRepository configRepository = jsch.getConfigRepository();
if (configRepository == null) {
return;
}
ConfigRepository.Config config =
configRepository.getConfig(org_host);
String[] values = config.getValues("LocalForward");
if (values != null) {
for (int i = 0; i < values.length; i++) {
setPortForwardingL(values[i]);
}
}
values = config.getValues("RemoteForward");
if (values != null) {
for (int i = 0; i < values.length; i++) {
setPortForwardingR(values[i]);
}
}
}
代码示例来源:origin: org.xbib/jsch-core
private void applyConfig() throws JSchException {
ConfigRepository configRepository = jsch.getConfigRepository();
if (configRepository == null) {
return;
代码示例来源:origin: org.mule.jsch/jsch
private void applyConfig() throws JSchException {
ConfigRepository configRepository = jsch.getConfigRepository();
if(configRepository == null){
return;
代码示例来源:origin: ePaul/jsch-documentation
private void applyConfig() throws JSchException {
ConfigRepository configRepository = jsch.getConfigRepository();
if(configRepository == null){
return;
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch
private void applyConfig() throws JSchException {
ConfigRepository configRepository = jsch.getConfigRepository();
if(configRepository == null){
return;
内容来源于网络,如有侵权,请联系作者删除!