1111件ヒット
[1-100件を表示]
(0.126秒)
ライブラリ
- ビルトイン (22)
- matrix (11)
-
net
/ http (44) -
rexml
/ document (451) -
rexml
/ parsers / pullparser (11) -
rexml
/ sax2listener (11) -
rexml
/ streamlistener (22) -
webrick
/ httpservlet / abstract (66) -
webrick
/ httpstatus (451)
クラス
- Hash (22)
- Matrix (11)
-
Net
:: HTTPResponse (22) -
REXML
:: DocType (44) -
REXML
:: Document (44) -
REXML
:: Entity (143) -
REXML
:: ExternalEntity (33) -
REXML
:: Parsers :: PullEvent (11) -
REXML
:: Text (55) -
WEBrick
:: HTTPServlet :: AbstractServlet (66)
モジュール
-
REXML
:: EntityConst (55) -
REXML
:: SAX2Listener (11) -
REXML
:: Security (44) -
REXML
:: StreamListener (22) -
WEBrick
:: HTTPStatus (440)
キーワード
- AMP (11)
- APOS (11)
-
DEFAULT
_ ENTITIES (11) - EntityConst (11)
- ExternalEntity (11)
- GT (11)
- HTTPRequestEntityTooLarge (11)
- HTTPUnprocessableEntity (11)
- LT (11)
-
NEWS for Ruby 2
. 1 . 0 (11) - QUOT (11)
-
RC
_ ACCEPTED (11) -
RC
_ BAD _ GATEWAY (11) -
RC
_ BAD _ REQUEST (11) -
RC
_ CONFLICT (11) -
RC
_ CONTINUE (11) -
RC
_ CREATED (11) -
RC
_ EXPECTATION _ FAILED (11) -
RC
_ FORBIDDEN (11) -
RC
_ FOUND (11) -
RC
_ GATEWAY _ TIMEOUT (11) -
RC
_ GONE (11) -
RC
_ HTTP _ VERSION _ NOT _ SUPPORTED (11) -
RC
_ INTERNAL _ SERVER _ ERROR (11) -
RC
_ LENGTH _ REQUIRED (11) -
RC
_ METHOD _ NOT _ ALLOWED (11) -
RC
_ MOVED _ PERMANENTLY (11) -
RC
_ MULTIPLE _ CHOICES (11) -
RC
_ NON _ AUTHORITATIVE _ INFORMATION (11) -
RC
_ NOT _ ACCEPTABLE (11) -
RC
_ NOT _ FOUND (11) -
RC
_ NOT _ IMPLEMENTED (11) -
RC
_ NOT _ MODIFIED (11) -
RC
_ NO _ CONTENT (11) -
RC
_ OK (11) -
RC
_ PARTIAL _ CONTENT (11) -
RC
_ PAYMENT _ REQUIRED (11) -
RC
_ PRECONDITION _ FAILED (11) -
RC
_ PROXY _ AUTHENTICATION _ REQUIRED (11) -
RC
_ REQUEST _ ENTITY _ TOO _ LARGE (11) -
RC
_ REQUEST _ RANGE _ NOT _ SATISFIABLE (11) -
RC
_ REQUEST _ TIMEOUT (11) -
RC
_ REQUEST _ URI _ TOO _ LARGE (11) -
RC
_ RESET _ CONTENT (11) -
RC
_ SEE _ OTHER (11) -
RC
_ SERVICE _ UNAVAILABLE (11) -
RC
_ SWITCHING _ PROTOCOLS (11) -
RC
_ TEMPORARY _ REDIRECT (11) -
RC
_ UNAUTHORIZED (11) -
RC
_ UNSUPPORTED _ MEDIA _ TYPE (11) -
RC
_ USE _ PROXY (11) - RequestEntityTooLarge (11)
- body (11)
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) -
do
_ DELETE (11) -
do
_ GET (11) -
do
_ HEAD (11) -
do
_ OPTIONS (11) -
do
_ POST (11) -
do
_ PUT (11) - entities (11)
- entity (33)
-
entity
_ expansion _ limit (22) -
entity
_ expansion _ limit= (22) -
entity
_ expansion _ text _ limit (22) -
entity
_ expansion _ text _ limit= (22) - entitydecl (22)
- entitydecl? (11)
- external (11)
- identity (11)
- matches? (11)
- name (11)
- ndata (11)
- new (44)
- normalize (11)
- normalized (11)
- pubid (11)
- ref (11)
-
to
_ s (33) - unnormalize (11)
- unnormalized (11)
- value (22)
-
webrick
/ cgi (11) - write (33)
検索結果
先頭5件
-
REXML
:: Entity (24058.0) -
XML における実体(エンティティ、entity)の宣言(declaration)を表わすクラス。
...ティ、entity)の宣言(declaration)を表わすクラス。
DTD(REXML::DocType)内の実体宣言に対応するものです。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<!DOCTYPE document [
<!ENTITY f "foo bar baz">
<!ENTITY x SYSTEM "x.txt">
<!ENTITY y SYSTE......PNG>
<!ENTITY % z "zzz">
<!ENTITY zz "%z;%z;&f;">
]>
EOS
entities = doc.doctype.entities
# f は 内部実体名なので、external や ref は nil である
p entities["f"].name # => "f"
p entities["f"].value # => "foo bar baz"
p entities["f"].external # => nil
p entities["f"].ref # => nil
# x......lue が nil で、
# external や ref が文字列を返してくる。
# しかし解析対象実体(parsed entity)なので ndata は nil を返す
p entities["x"].name # => "x"
p entities["x"].value # => nil
p entities["x"].external # => "SYSTEM"
p entities["x"].ref # => "x.txt"
p entities["x"].n... -
REXML
:: Security . entity _ expansion _ limit -> Integer (21307.0) -
実体参照の展開回数の上限を返します。
...書(REXML::Document)ごとの展開回数がこの値を越えると
例外を発生させ、処理を中断します。
実体参照の展開処理を使った DoS 攻撃に対抗するための
仕組みです。
デフォルトは 10000 です。
@see REXML::Document.entity_expansion_limit... -
REXML
:: Security . entity _ expansion _ limit=(val) (21307.0) -
実体参照の展開回数の上限を指定します。
...の展開回数の上限を指定します。
XML 文書(REXML::Document)ごとの展開回数がこの値を越えると
例外を発生させ、処理を中断します。
デフォルトは 10000 です。
@param val 設定する上限値(整数)
@see REXML::Document.entity_expansion_limit... -
REXML
:: Security . entity _ expansion _ text _ limit -> Integer (21307.0) -
実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。
...せ、処理を中断します。
実体参照の展開処理を使った DoS 攻撃に対抗するための
仕組みです。
デフォルトは 10240 (byte) です。
@see REXML::Document.entity_expansion_text_limit=,
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/... -
REXML
:: Security . entity _ expansion _ text _ limit=(val) (21307.0) -
実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。
...させ、処理を中断します。
実体参照の展開処理を使った DoS 攻撃に対抗するための
仕組みです。
デフォルトは 10240 (byte) です。
@see REXML::Document.entity_expansion_text_limit
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/... -
REXML
:: Document . entity _ expansion _ limit -> Integer (18313.0) -
実体参照の展開回数の上限を返します。
...開処理を使った DoS 攻撃に対抗するための
仕組みです。
デフォルトは 10000 です。
このメソッドは Ruby 2.1 から deprecated になりました。
REXML::Security.entity_expansion_limit を使ってください。
@see REXML::Document.entity_expansion_limit=... -
REXML
:: Document . entity _ expansion _ limit=(val) (18313.0) -
実体参照の展開回数の上限を指定します。
...せ、処理を中断します。
デフォルトは 10000 です。
このメソッドは Ruby 2.1 から deprecated になりました。
REXML::Security.entity_expansion_limit= を使ってください。
@param val 設定する上限値(整数)
@see REXML::Document.entity_expansion_limit... -
REXML
:: Document . entity _ expansion _ text _ limit -> Integer (18313.0) -
実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。
...トは 10240 (byte) です。
このメソッドは Ruby 2.1 から deprecated になりました。
REXML::Security.entity_expansion_text_limit を使ってください。
@see REXML::Document.entity_expansion_text_limit=,
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/... -
REXML
:: Document . entity _ expansion _ text _ limit=(val) (18313.0) -
実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。
...トは 10240 (byte) です。
このメソッドは Ruby 2.1 から deprecated になりました。
REXML::Security.entity_expansion_text_limit= を使ってください。
@see REXML::Document.entity_expansion_text_limit
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/... -
REXML
:: StreamListener # entitydecl(content) -> () (12236.0) -
DTDの実体宣言をパースしたときに呼び出されるコールバックメソッドです。
...//emlist[][ruby]{
require 'rexml/parsers/baseparser'
require 'rexml/parsers/streamparser'
require 'rexml/streamlistener'
xml = <<EOS
<!DOCTYPE root [
<!ENTITY % YN '"Yes"'>
<!ENTITY % YN 'Yes'>
<!ENTITY WhatHeSaid "He said %YN;">
<!ENTITY open-hatch SYSTEM "http://www.textuality.com/boilerplate/Op......tch.xml">
<!ENTITY open-hatch PUBLIC "-//Textuality//TEXT Standard open-hatch boilerplate//EN" "http://www.textuality.com/boilerplate/OpenHatch.xml">
<!ENTITY hatch-pic SYSTEM "../grafix/OpenHatch.gif" NDATA gif>
]>
<root />
EOS
class Listener
include REXML::StreamListener
def entitydecl(conten......Parser.new(xml, Listener.new).parse
# >> ["YN", "\"Yes\"", "%"]
# >> ["YN", "Yes", "%"]
# >> ["WhatHeSaid", "He said %YN;"]
# >> ["open-hatch", "SYSTEM", "http://www.textuality.com/boilerplate/OpenHatch.xml"]
# >> ["open-hatch", "PUBLIC", "-//Textuality//TEXT Standard open-hatch boilerplate//EN", "h...