Listing 4 shows the root resource class.
清单4展示了root资源类。
Listing 23. Produce HTML in resource class.
清单23.在资源类中生成html。
Listing 25. Produce text media type in the resource class.
清单25.在资源类中生成文本媒体类型。
Run the resource class to produce different types of output.
运行资源类以生成不同的输出类型。
Adding notifications to your existing Person resource class.
向已有的Person资源类中添加通知。
Resource Class: Delegate the process to this resource class.
Resource Class:将流程委托给该资源类。
Resources \ Users.hrf - Defines the resource class hierarchy.
Resources \Users . hrf ?定义资源类层次结构。
Next, run the resource class producing different types of output.
接下来,运行资源类,生成不同类型的输出。
Right-click the resource class, and select Run As > Run on Server.
右键单击资源类,并选择Run As > Runon Server。
Any POJO that implements the resource is known as the resource class.
实现资源的POJO被称为资源类。
For example, in the resource class, uncomment the method in Listing 23.
例如,在资源类中,取消清单23中的方法的注释。
Next, create a RESTful web service resource using a root resource class.
接下来,使用根资源类创建一个RESTfulweb服务资源。
To add another one of these properties you must recompile the resource class.
要添加这些属性中的另一个,您必须重新编译资源类。
The MIME type produced by the resource class should match an acceptable MIME type.
资源类生成的MIME类型应当匹配一种可接受的 MIME 类型。
To get the text response, uncomment the method in the resource class in Listing 25.
要获得文本响应,对清单25中资源类中的方法取消注释。
The accepted response type should match the MIME type produced in the resource class.
允许的响应类型应当匹配资源类中生成的MIME类型。
The next step is to create a RESTful web service resource using a root resource class.
下一步是使用一个root资源类创建一个RESTfulWeb服务资源。
The Resource class DivisionsResource in Listing 18 is implemented in a very similar way.
清单18 中的资源类DivisionsResource 采用类似的方法实现。
The resource class must implement the interface com.ibm.websphere.personalization.resources.Resource.
资源类必须实现接口com . ibm . websphere . personalization . resources . resource。
Redeploy the AndroidJAX-RS web service resource class, and redeploy the SpringAndroid client application.
重新部署AndroidJAX - RSweb服务资源类,并重新部署SpringAndroid客户端应用程序。
As you can see, accessing strings from a resource file using a strongly typed resource class is pretty easy.
正如您看到的,使用强类型资源类访问资源文件中的字符串比较简单。
Then, you create an instance of the Resource class from it using the URI of the service you want to connect to.
然后,使用希望连接的服务的URI从中创建resource类的一个实例。
The request processor USES the request URI to find, match, and invoke the corresponding resource class and method.
请求处理器使用请求uri寻找、匹配和调用相应的资源类和方法。
The FileUploader application service sample receives a standard HTML multipart/form-data submission in a JAX-RS resource class.
FileUploader应用程序服务样例在JAX-RS资源类中检索标准的HTMLmultipart/form-data 格式的提交。
An effective technique for creating a fully thread-safe class is to merge the synchronization class into the resource class.
创建完全线程安全类的有效技术是将同步类合并到资源类中。
Exe can also be used to generate a strongly typed resource class that exposes properties providing easy access to the resource inside.
也可以使用Resgen . exe生成一个强类型资源类,以公开能够轻松访问其中资源的属性。
The strongly typed resource class also converts the embedded XML file into a string that can be easily loaded into an XmlDocument object.
强类型资源类还将嵌入的XML文件转换为能够轻松加载到 XmlDocument对象中的字符串。
The resource class is the base class that contains methods for EMF resource manipulation, including methods for reading and saving content.
resource类是一个基类,它包含用于操作e MF资源的方法,包括读取和保存内容的方法。
It USES annotations to map the resource class with a URI and to map standard HTTP methods in an HTTP request to the methods in the resource class.
它使用注释映射资源类与URI,并将HTTP请求中的标准HTTP方法映射到资源类中的方法。
You can observe that the strongly typed resource class automatically converts a.png file into an Image object that can be directly loaded into a PictureBox.
您可以看到,强类型资源类自动将.png文件转换为能够直接加载到PictureBox中的Image对象。
应用推荐