小编Ush*_*ani的帖子

Java 8 Stream API用于查找与属性值匹配的唯一对象

使用Java 8 Stream从Collection中查找与Property值匹配的对象.

List<Person> objects = new ArrayList<>();
Run Code Online (Sandbox Code Playgroud)

人员属性 - >姓名,电话,电子邮件.

迭代人员列表并找到匹配电子邮件的对象.看到这可以通过Java 8流轻松完成.但那还会收回一个系列吗?

例如:

List<Person> matchingObjects = objects.stream.
    filter(p -> p.email().equals("testemail")).
    collect(Collectors.toList());
Run Code Online (Sandbox Code Playgroud)

但我知道它总会有一个独特的对象.我们可以做一些事情,而不是Collectors.toList直接得到实际的对象.而不是获取对象列表.

java filter java-8 java-stream

44
推荐指数
3
解决办法
8万
查看次数

使用WCF设置NTLM身份验证到Sharepoint Web服务

设置我的WCF服务以与Sharepoint Web服务进行通信时遇到了很多困难,特别是我正在尝试使用Lists.asmx和Copy.asmx服务.

我使用http链接到sharepoint进行开发,但现在我们需要切换到HTTPS链接.我获得了Web引用设置并更新了此链接,但是当它尝试调用服务(例如:GetListItems)时,它出错并出现以下错误:请求失败,HTTP状态为401:未经授权.

然后我试着看看我们的Sharepoint Server使用什么类型的身份验证,结果证明是NTLM.然后我尝试为此配置web.config文件.这是整个web.config文件:

<?xml version="1.0"?>
<configuration>
    <configSections>
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
            <section name="InventoryService.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
        </sectionGroup>
    </configSections>
    <appSettings/>
    <connectionStrings/>
    <system.web>
        <compilation debug="true" targetFramework="4.0">
        </compilation>
        <!--
        The <authentication> section enables configuration 
        of the security authentication mode used by 
        ASP.NET to identify an incoming user. 
    -->
        <authentication mode="Windows"/>
        <!--
        The <customErrors> section enables configuration 
        of what to do if/when an unhandled error occurs 
        during the execution of a request. Specifically, 
        it enables developers …
Run Code Online (Sandbox Code Playgroud)

c# https sharepoint wcf ntlm

6
推荐指数
1
解决办法
8805
查看次数

WSO2 ESB 4.7.0在服务器上下载

我们如何直接在服务器上下载WSO2 ESB的4.7.0版本?我只有一个服务器的ssh终端,没有GUI.

我试过wget.有和没有auth.尝试使用wget的--save-cookies方法也没有任何成功.

我尝试使用elinks并使用我的帐户登录wso2站点,但我无法通过终端下载最新版本.

想知道为什么开源项目会让下载产品构建变得如此困难?

任何人都可以帮我链接或通过终端下载它的方法吗?

esb wso2 download wso2esb

3
推荐指数
1
解决办法
1497
查看次数

标签 统计

c# ×1

download ×1

esb ×1

filter ×1

https ×1

java ×1

java-8 ×1

java-stream ×1

ntlm ×1

sharepoint ×1

wcf ×1

wso2 ×1

wso2esb ×1