#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
msgid ""
msgstr ""
"Project-Id-Version: Apache Traffic Server 4.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-11-08 17:57+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:2
msgid "The Append-Transform Plugin"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:21
msgid ""
"The append-transform plugin appends text to the body of an HTTP response. "
"It obtains this text from a file; the name of the file containing the "
"append text is a parameter you specify in ``plugin.config``, as follows:"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:30
msgid ""
"The append-transform plugin is based on ``null-transform.c``. The only "
"difference is that after the plugin feeds the document through the "
"transformation, it adds text to the response."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:34
msgid ""
"Below is a list of the functions in ``append-transform.c``, in the order "
"they appear in the source code. Below each entry is a description of what "
"the function does:"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:38
msgid "**``my_data_alloc``**"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:40
msgid ""
"Allocates and initializes a ``MyData`` structure. The plugin defines a "
"struct, ``MyData``, as follows:"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:53
msgid ""
"The ``MyData`` structure is used to represent data that the transformation "
"(vconnection) needs. The transformation's data pointer is set to a "
"``MyData`` pointer using ``TSContDataSet`` in the ``handle_transform`` "
"routine."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:58
msgid "**``my_data_destroy``**"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:60
msgid ""
"Destroys objects of type ``MyData``. To deallocate the transform's data, "
"the ``append_transform`` routine (see below) calls ``my_data_destroy`` when "
"the transformation is complete."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:64
msgid "**``handle_transform``**"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:66
msgid ""
"This function does the actual data transformation. The transformation is "
"created in ``transform_add`` (see below). ``handle_transform`` is called by "
"``append_transform``."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:70
msgid "**``append_transform``**"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:72
msgid ""
"This is the handler function for the transformation vconnection created in "
"``transform_add``. It is the implementation of the vconnection."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:76
msgid ""
"If the transformation vconnection has been closed, then "
"``append_transform`` calls ``my_data_destroy`` to destroy the vonnection."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:80
msgid ""
"If ``append_transform`` receives an error event, then it calls back the "
"continuation to let it know it has completed the write operation."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:84
msgid ""
"If it receives a ``WRITE_COMPLETE`` event, then it shuts down the write "
"portion of its vconnection."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:87
msgid ""
"If it receives a ``WRITE_READY`` or any other event (such as "
"``TS_HTTP_RESPONSE_TRANSFORM_HOOK``), then it calls ``handle_transform`` to "
"attempt to transform more data."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:91
msgid "**``transformable``**"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:93
msgid ""
"The plugin transforms only documents that have a content type of ``text/"
"html``. This function examines the ``Content-Type`` MIME header field in "
"the response header. If the value of the MIME field is ``text/html``, then "
"the function returns 1; otherwise, it returns zero."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:99
msgid "**``transform_add``**"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:101
msgid ""
"Creates the transformation for the current transaction and sets up a "
"transformation hook. The handler function for the transformation is "
"``append_transform``."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:105
msgid "**``transform_plugin``**"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:107
msgid ""
"This is the handler function for the main continuation for the plugin. "
"Traffic Server calls this function whenever it reads an HTTP response "
"header. ``transform_plugin`` does the following:"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:111
msgid "Gets a handle to the HTTP transaction being processed"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:113
msgid ""
"Calls ``transformable`` to determine whether the response document content "
"is of type ``text/html``"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:116
msgid ""
"If the content is transformable, then it calls ``transform_add`` to create "
"the transformation."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:119
msgid "Calls ``TSHttpTxnReenable`` to continue the transaction"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:121
msgid "**``load``**"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:123
msgid ""
"Opens the file containing the text to be appended and loads the contents of "
"the file into an ``TSIOBuffer`` called ``append_buffer``."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:126
msgid "**``TSPluginInit``**"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:128
msgid "Does the following:"
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:130
msgid ""
"Checks to make sure that the required configuration information (the append "
"text filename) is entered in ``plugin.config`` correctly."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:134
msgid ""
"If there is a filename, then ``TSPluginInit`` calls load to load the text."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:137
msgid ""
"Creates a continuation for the plugin. The handler for this continuation is "
"``transform_plugin``."
msgstr ""

#: ../../sdk/http-transformation-plugin/append-transform-plugin.en.rst:140
msgid ""
"Adds the plugin's continuation to ``TS_HTTP_READ_RESPONSE_HDR_HOOK``. In "
"other words, it sets up a callback of the plugin's continuation when "
"Traffic Server reads HTTP response headers."
msgstr ""
