Class: Nicos::Connector::MylistHtml

Inherits:
Xml show all
Defined in:
lib/classes/connector.rb

Instance Attribute Summary

Attributes inherited from Connector

#result, #waitConfig

Instance Method Summary collapse

Methods inherited from Xml

#get

Methods inherited from Connector

#getStatus, #initialize

Methods included from SetWait

#setWait

Methods inherited from Config

setWait, setWaitDefault

Constructor Details

This class inherits a constructor from Nicos::Connector::Connector

Instance Method Details

#forbiddenObject



260
261
262
263
# File 'lib/classes/connector.rb', line 260

def forbidden
  # マイリストが非公開の場合、html/Atomのどちらへのリクエストであっても、403が返ってくる。
  notPublic
end

#reviewRes(resBody) ⇒ Object



265
266
267
268
269
270
271
272
273
# File 'lib/classes/connector.rb', line 265

def reviewRes(resBody)
  r = resBody.force_encoding("UTF-8")
  if # アクセス集中時
    /大変ご迷惑をおかけいたしますが、しばらく時間をあけてから再度検索いただくようご協力をお願いいたします。/ =~ r then
    serverIsBusy
  else
    succeeded(resBody)       
  end      
end