首页 \ 问答 \ 此示例代码使用哪个版本的Netty API?(Which version of Netty API does this example code use? Unable to resolve io.netty.handler.codec.http.DiskFileUpload with 3.2.x)

此示例代码使用哪个版本的Netty API?(Which version of Netty API does this example code use? Unable to resolve io.netty.handler.codec.http.DiskFileUpload with 3.2.x)

我遇到了使用Netty处理文件上传的示例代码,这看起来很完美,正是我需要的。 不幸的是,由于许多Netty API功能尚未解决,因此无法合并此类。 其中一个例如是io.netty.handler.codec.http.DiskFileUpload,我无法在3.0,3.1.3.2的任何在线API文档中找到它。

我遇到问题的课程在这里:

https://github.com/netty/netty/blob/master/example/src/main/java/io/netty/example/http/upload/HttpUploadServerHandler.java

我尝试过使用netty-3.2.5.final,3.3.1.final,3.4.0.Alpha

未解决的进口:

import org.jboss.netty.handler.codec.http.HttpPostRequestDecoder.EndOfDataDecoderException;
import org.jboss.netty.handler.codec.http.HttpPostRequestDecoder.ErrorDataDecoderException;
import org.jboss.netty.handler.codec.http.HttpPostRequestDecoder.IncompatibleDataDecoderException;
import org.jboss.netty.handler.codec.http.HttpPostRequestDecoder.NotEnoughDataDecoderException; 
import org.jboss.netty.handler.codec.http.InterfaceHttpData;
import org.jboss.netty.handler.codec.http.InterfaceHttpData.HttpDataType
import org.jboss.netty.handler.codec.http.HttpDataFactory;
import org.jboss.netty.handler.codec.http.DiskAttribute;
import org.jboss.netty.handler.codec.http.DiskFileUpload;
import org.jboss.netty.handler.codec.http.FileUpload;
import org.jboss.netty.handler.codec.http.DefaultHttpDataFactory;
import org.jboss.netty.handler.codec.http.Attribute

任何帮助appricated


I came across this sample code for handling file uploads with Netty, this looks perfect, just what I needed. Unfortunately I am having difficulty incorporating this class as many Netty API features are unresolved. One of them for example is io.netty.handler.codec.http.DiskFileUpload, I am unable to find this in any of the online API docs for 3.0,3.1.3.2.

The class I am having issues with is here:

https://github.com/netty/netty/blob/master/example/src/main/java/io/netty/example/http/upload/HttpUploadServerHandler.java

I have tried using netty-3.2.5.final, 3.3.1.final, 3.4.0.Alpha

Unresolved imports:

import org.jboss.netty.handler.codec.http.HttpPostRequestDecoder.EndOfDataDecoderException;
import org.jboss.netty.handler.codec.http.HttpPostRequestDecoder.ErrorDataDecoderException;
import org.jboss.netty.handler.codec.http.HttpPostRequestDecoder.IncompatibleDataDecoderException;
import org.jboss.netty.handler.codec.http.HttpPostRequestDecoder.NotEnoughDataDecoderException; 
import org.jboss.netty.handler.codec.http.InterfaceHttpData;
import org.jboss.netty.handler.codec.http.InterfaceHttpData.HttpDataType
import org.jboss.netty.handler.codec.http.HttpDataFactory;
import org.jboss.netty.handler.codec.http.DiskAttribute;
import org.jboss.netty.handler.codec.http.DiskFileUpload;
import org.jboss.netty.handler.codec.http.FileUpload;
import org.jboss.netty.handler.codec.http.DefaultHttpDataFactory;
import org.jboss.netty.handler.codec.http.Attribute

Any help appricated


原文:https://stackoverflow.com/questions/9687558
更新时间:2023-02-18 15:02

最满意答案

在TFS中删除文件夹有点奇怪。

你必须:

  • 创建一个工作区

  • 获取文件夹的最新来源(到本地机器)

  • 在Source Explorer内部,删除该文件夹

  • 检入您的更改(这是在源代码管理中删除文件夹的步骤)


Deleting a folder in TFS is a little strange.

You have to:

  • Create a Workspace

  • Get the latest source for the folder (to your local machine)

  • Inside Source Explorer, delete the folder

  • Check in your changes (this is the step that deletes the folder in Source Control)

相关问答

更多
  • 在TFS中删除文件夹有点奇怪。 你必须: 创建一个工作区 获取文件夹的最新来源(到本地机器) 在Source Explorer内部,删除该文件夹 检入您的更改(这是在源代码管理中删除文件夹的步骤) Deleting a folder in TFS is a little strange. You have to: Create a Workspace Get the latest source for the folder (to your local machine) Inside Source Expl ...
  • 这是一个较老的帖子,但由于唯一给出的答案似乎对我来说并不完全正确,我想回答一下:我在这里写道 :德国人: blog.nils-andresen.de 如果您有本地副本,那么您想要取消或取消下载: 只需右键单击该文件夹,然后单击“获取特定版本”或“高级>获取特定版本”,并获取该文件夹的编号1。 过程完成后,“最新”列将显示“未下载”。 之后,文件系统中的任何剩余文件可以安全地删除。 This is an older post, but since the only given answer seems "no ...
  • 根据您的信息,它似乎与安全设置有关。 您还可以使用tf history 以allen建议显示该文件夹的修订历史记录。 要查看“隐藏”文件夹。 您必须具有该文件夹的读取权限。 您可以使用tf permission命令列出所有权限,例如tf permission /server: 注意:要使用权限命令,必须将“操作安全设置”权限设置为“允许”,以便修改文件夹,成为Team Foundation Adminis ...
  • 两件事情要尝试: 获得版本1的技巧: 在源代码管理器中,获取特定版本 选择“更改集” 对于Changeset编号,使用“1” 确保选中这两个复选框(覆盖可写,并覆盖全部) 点击“获取” 在Windows资源管理器中,删除所有剩余的本地文件。 试图再次获得“最新”。 “从轨道上核武器”的诡计 将新工作区映射到新文件夹。 获取最新信息 删除旧的工作区。 来回转移你的眼睛并说出“什么映射?” 每当有人问你原始的工作区映射。 号码1应该适合你,但我们不得不在次数上诉诸于号码2。 After taking a loo ...
  • 我认为这是不可能的,但您可以为此目的创建一个解决方案(类似于DeployProjects.sln),以及您要构建的所有项目。 对于每个新项目,您都将其添加到此解决方案中。 I think this is not possible, but you can create one solution just for this purpose (something like DeployProjects.sln), with all projects that you want to build. For eac ...
  • 您应该可以使用“移动...”选项。 右键单击Test2并将其从“$ / Project1 / Test1 / Test2”移动到“$ / Project1 / Test2”。 检查更改 右键单击Test1并Delete 检查更改 (我已经为此提出了两个签到,因为TFS在处理重命名和删除的混合方面非常糟糕,并且由于Test2在Test1中,您可能会遇到尝试一步删除和重命名的问题) You should be able to use the "Move..." option. Right click on Te ...
  • 感谢您的提示,Daniel和PatrickLu-MSFT。 正如我所说,我确实想要一些直截了当的东西,某种控制类似于box.com提供的,你将机器上的本地文件夹与云相关联。 因此,一旦您将文件放在本地文件夹中,小盒子客户端就会将其与云同步。 如果访问box.com,我可以看到该特定文件的不同版本。 所以我做的是,我创建了一个小的.NET应用程序来监控文件夹,任何放在那里的新文件都会通过使用tf命令行(当然忽略工作项或注释)进入我们的TFS服务器。 因此,在.NET应用程序中,它可以构建所需的命令,用于处理和 ...
  • 假设你在你的机器上安装了VS2013和VS2015。 当您将项目从TFS映射到VS2013中的本地路径时,如果您打开VS2015,并选择您在VS2013中创建的工作区,那么您将在VS2015中看到相同的本地路径,您不需要再次映射它(make确保你的项目可以在VS2013和VS2015中工作): Assuming you install both VS2013 and VS2015 on your machine. When you map a project from TFS to local path i ...
  • 听起来你正试图避免在更改文件时明确签出文件。 Team Foundation版本控制已具有此功能。 Team Foundation版本控制以两种模式运行: 签出/编辑/签入,您需要在更改内容之前明确签出文件以进行编辑。 该文件甚至标记为只读( 0444 ),直到您运行tf checkout 。 编辑/合并/提交,您可以随时编辑文件,运行tf status将检查本地文件系统是否有更改,并将每个更改标记为edit 。 后者称为“本地工作空间”,可以通过在创建工作空间时将-location: ...

相关文章

更多

最新问答

更多
  • 如何在Laravel 5.2中使用paginate与关系?(How to use paginate with relationships in Laravel 5.2?)
  • linux的常用命令干什么用的
  • 由于有四个新控制器,Auth刀片是否有任何变化?(Are there any changes in Auth blades due to four new controllers?)
  • 如何交换返回集中的行?(How to swap rows in a return set?)
  • 在ios 7中的UITableView部分周围绘制边界线(draw borderline around UITableView section in ios 7)
  • 使用Boost.Spirit Qi和Lex时的空白队长(Whitespace skipper when using Boost.Spirit Qi and Lex)
  • Java中的不可变类(Immutable class in Java)
  • WordPress发布查询(WordPress post query)
  • 如何在关系数据库中存储与IPv6兼容的地址(How to store IPv6-compatible address in a relational database)
  • 是否可以检查对象值的条件并返回密钥?(Is it possible to check the condition of a value of an object and JUST return the key?)
  • GEP分段错误LLVM C ++ API(GEP segmentation fault LLVM C++ API)
  • 绑定属性设置器未被调用(Bound Property Setter not getting Called)
  • linux ubuntu14.04版没有那个文件或目录
  • 如何使用JSF EL表达式在param中迭代变量(How to iterate over variable in param using JSF EL expression)
  • 是否有可能在WPF中的一个单独的进程中隔离一些控件?(Is it possible to isolate some controls in a separate process in WPF?)
  • 使用Python 2.7的MSI安装的默认安装目录是什么?(What is the default installation directory with an MSI install of Python 2.7?)
  • 寻求多次出现的表达式(Seeking for more than one occurrence of an expression)
  • ckeditor config.protectedSource不适用于editor.insertHtml上的html元素属性(ckeditor config.protectedSource dont work for html element attributes on editor.insertHtml)
  • linux只知道文件名,不知道在哪个目录,怎么找到文件所在目录
  • Actionscript:检查字符串是否包含域或子域(Actionscript: check if string contains domain or subdomain)
  • 将CouchDB与AJAX一起使用是否安全?(Is it safe to use CouchDB with AJAX?)
  • 懒惰地初始化AutoMapper(Lazily initializing AutoMapper)
  • 使用hasclass为多个div与一个按钮问题(using hasclass for multiple divs with one button Problems)
  • Windows Phone 7:检查资源是否存在(Windows Phone 7: Check If Resource Exists)
  • 无法在新线程中从FREContext调用getActivity()?(Can't call getActivity() from FREContext in a new thread?)
  • 在Alpine上升级到postgres96(/ usr / bin / pg_dump:没有这样的文件或目录)(Upgrade to postgres96 on Alpine (/usr/bin/pg_dump: No such file or directory))
  • 如何按部门显示报告(How to display a report by Department wise)
  • Facebook墙贴在需要访问令牌密钥后无法正常工作(Facebook wall post not working after access token key required)
  • Javascript - 如何在不擦除输入的情况下更改标签的innerText(Javascript - how to change innerText of label while not wiping out the input)
  • WooCommerce / WordPress - 不显示具有特定标题的产品(WooCommerce/WordPress - Products with specific titles are not displayed)