input
stringlengths
10
828
output
stringlengths
5
107
public void set subscription id org apache axis types token subscription id this subscription id subscription id
sets the subscription id value for this cancel
public void set offer metadata org icestandard ice v20 subscribe offer metadata type offer metadata this offer metadata offer metadata
sets the offer metadata value for this offer type
public void set protocol org icestandard ice v20 subscribe transport type protocol protocol this protocol protocol
sets the protocol value for this transport type
public void set packaging style org icestandard ice v20 subscribe transport type packaging style packaging style this packaging style packaging style
sets the packaging style value for this transport type
private string get subscriber ping url assumes subscriber has already been loaded a subscriber sends its url delivery endpoint when it subscribes to a push subscription technically each subscription could have a different endpoint so we just grab the first one associated with a soap transport for iterator iter subscriber subscriptions iter has next subscription type sub subscription type iter next string url get subscription url sub soap if url null return url return null
returns a url where the current subscriber can be pinged
public void set current state org apache axis types token current state this current state current state
sets the current state value for this subscription type
public void set description org icestandard ice v20 subscribe description type description this description description
sets the description value for this offer type
public void set code org apache axis types positive integer code this code code
sets the code value for this subscription fault
public void set quantity remaining java math big integer quantity remaining this quantity remaining quantity remaining
sets the quantity remaining value for this subscription type
public void set cancellation id org apache axis types token cancellation id this cancellation id cancellation id
sets the cancellation id value for this cancellation
public void set delivery policy org icestandard ice v20 subscribe delivery policy type delivery policy this delivery policy delivery policy
sets the delivery policy value for this offer type
public boolean is atomic use return atomic use
gets the atomic use value for this content metadata type
public void set transport org icestandard ice v20 subscribe transport type transport this transport transport
sets the transport value for this delivery rule type
public void set business term org icestandard ice v20 subscribe business term type business term this business term business term
sets the business term value for this offer type
public void set atomic use boolean atomic use this atomic use atomic use
sets the atomic use value for this content metadata type
public void set type org icestandard ice v20 subscribe business term type type type this type type
sets the type value for this business term type
public void set name org apache axis types token name this name name
sets the name value for this business term type
public void set required extension org icestandard ice v20 subscribe offer type required extension required extension this required extension required extension
sets the required extension value for this offer type
public void set mode org icestandard ice v20 subscribe delivery rule type mode mode this mode mode
sets the mode value for this delivery rule type
public boolean is usage required return usage required
gets the usage required value for this business term type
public void set monthday org apache axis types nmtokens monthday this monthday monthday
sets the monthday value for this delivery rule type
public void set ip status org apache axis types token ip status this ip status ip status
sets the ip status value for this content metadata type
public void set usage required boolean usage required this usage required usage required
sets the usage required value for this business term type
public void set weekday org apache axis types nmtokens weekday this weekday weekday
sets the weekday value for this delivery rule type
public void set business term id java lang string business term id this business term id business term id
sets the business term id value for this business term type
public void set license org apache axis types token license this license license
sets the license value for this content metadata type
public void set extension type org apache axis types uri extension type this extension type extension type
sets the extension type value for this offer type required extension
public void set rights holder org apache axis types token rights holder this rights holder rights holder
sets the rights holder value for this content metadata type
public void set starttime org apache axis types time starttime this starttime starttime
sets the starttime value for this delivery rule type
public boolean is show credit return show credit
gets the show credit value for this content metadata type
public void set reference org icestandard ice v20 simpledatatypes url access type reference this reference reference
sets the reference value for this add type item ref
public void set valid after java util calendar valid after this valid after valid after
sets the valid after value for this offer type
public void set show credit boolean show credit this show credit show credit
sets the show credit value for this content metadata type
public void set retrieve after java util calendar retrieve after this retrieve after retrieve after
sets the retrieve after value for this add type item ref
public void set duration org apache axis types duration duration this duration duration
sets the duration value for this delivery rule type
public void set item type org icestandard ice v20 simpledatatypes item types item type this item type item type
sets the item type value for this content metadata type
public void set expiration date java util calendar expiration date this expiration date expiration date
sets the expiration date value for this offer type
public void set min num updates java math big integer min num updates this min num updates min num updates
sets the min num updates value for this delivery rule type
public boolean is full ice return full ice
gets the full ice value for this offer type
public void set confirmation org icestandard ice v20 delivery confirmation type confirmation this confirmation confirmation
sets the confirmation value for this package confirmations type
public void set max num updates java math big integer max num updates this max num updates max num updates
sets the max num updates value for this delivery rule type
public void set metadata org icestandard ice v20 delivery metadata type metadata this metadata metadata
sets the metadata value for this add type
public void set full ice boolean full ice this full ice full ice
sets the full ice value for this offer type
public void set item org icestandard ice v20 delivery item type item this item item
sets the item value for this add type
public void set description org icestandard ice v20 simpledatatypes text type description this description description
sets the description value for this metadata type
public void set cm package org icestandard ice v20 delivery cm package cm package this cm package cm package
sets the cm package value for this group type
public void set item ref org icestandard ice v20 delivery add type item ref item ref this item ref item ref
sets the item ref value for this add type
public boolean is incremental update return incremental update
gets the incremental update value for this delivery rule type
public void set subscription element id java lang string subscription element id this subscription element id subscription element id
sets the subscription element id value for this group type
public void set subscription element id org apache axis types token subscription element id this subscription element id subscription element id
sets the subscription element id value for this add type
public void set get package org icestandard ice v20 delivery get package type get package this get package get package
sets the get package value for this get packages
public void set content filename org apache axis types token content filename this content filename content filename
sets the content filename value for this metadata type
public void set incremental update boolean incremental update this incremental update incremental update
sets the incremental update value for this delivery rule type
public void set content type org apache axis types token content type this content type content type
sets the content type value for this metadata type
public void set package id org apache axis types token package id this package id package id
sets the package id value for this confirmation type
public void set activation java util calendar activation this activation activation
sets the activation value for this add type
public boolean is confirmation return confirmation
gets the confirmation value for this delivery rule type
public void set processing completed org icestandard ice v20 delivery confirmation type processing completed processing completed this processing completed processing completed
sets the processing completed value for this confirmation type
public void set expiration java util calendar expiration this expiration expiration
sets the expiration value for this add type
public void set content transfer encoding org icestandard ice v20 delivery item type content transfer encoding content transfer encoding this content transfer encoding content transfer encoding
sets the content transfer encoding value for this item type
public void set group org icestandard ice v20 delivery group type group this group group
sets the group value for this cm package
public void set package org icestandard ice v20 delivery package type package this package package
sets the package value for this packages
public boolean is fullupdate return fullupdate
gets the fullupdate value for this package type
public void set add org icestandard ice v20 delivery add type add this add add
sets the add value for this cm package
public void set remove item org icestandard ice v20 delivery remove type remove item this remove item remove item
sets the remove item value for this cm package
public void set fullupdate boolean fullupdate this fullupdate fullupdate
sets the fullupdate value for this package type
public void set new state org apache axis types token new state this new state new state
sets the new state value for this package type
public void set old state org apache axis types token old state this old state old state
sets the old state value for this package type
public void set sender org icestandard ice v20 message sender type sender this sender sender
sets the sender value for this header
public void set receiver id org apache axis types uri receiver id this receiver id receiver id
sets the receiver id value for this receiver type
public void set receiver org icestandard ice v20 message receiver type receiver this receiver receiver
sets the receiver value for this header
public void add subscription subscription sub subscriptions add sub store
add a subscription
public void set role org icestandard ice v20 message receiver type role role this role role
sets the role value for this receiver type
public void set compliance level org icestandard ice v20 simpledatatypes compliance types compliance level this compliance level compliance level
sets the compliance level value for this receiver type
public void set user agent org icestandard ice v20 simpledatatypes text type user agent this user agent user agent
sets the user agent value for this header
public void set message id org apache axis types token message id this message id message id
sets the message id value for this status code
public void set role org icestandard ice v20 message sender type role role this role role
sets the role value for this sender type
public void set sender id org apache axis types uri sender id this sender id sender id
sets the sender id value for this sender type
public void set location org apache axis types uri location this location location
sets the location value for this status code
public void set response to org apache axis types token response to this response to response to
sets the response to value for this header
public void remove all subscriptions subscriptions clear store
removes all subscriptions
public void set endpoint address java lang string port name java lang string address throws javax xml rpc service exception if ice syndicator full port type equals port name set ice syndicator full port type endpoint address address else unknown port name throw new javax xml rpc service exception cannot set endpoint address for unknown port port name
set the endpoint address for the specified port name
public string push all string buffer buf new string buffer for iterator iter subscribers iter has next buf append push to string iter next buf append return buf to string
pushes push subscriptions to all subscribers
public void test prolog string expected xml version 1 0 assert equals expected doc string substring 0 expected length
makes sure the document starts with the xml decl spec
public void test attributes assert true expected attribute missing doc string index of meaning of life 42 1
makes sure the attribute containing an integer object is correct
public void test empty tag assert true expected empty tag missing doc string index of empty 1
makes sure the empty tag is created with closing instead of as
public void test parses ok try min ml2 parser new min ml2 parser parse new string reader doc string catch exception e fail e to string
makes sure the document is parseable without any errors
public void test xmldecl string expected xml version 1 0 assert equals expected payload string substring 0 expected length
makes sure the document starts with the xml decl spec
public void test doctype string expected doctype ice payload system http www icestandard org dtds ice1 1 dtd assert true doctype missing payload string index of expected 0
makes sure the document has the proper doctype
public void test date time parsing assert equals known date date time parse icedate time full date time string
tests date time parsing
public void test date time format assert equals expected date string t expected time string date time time to icedate time known date false
tests date time formatting without milliseconds
public void test date time format millis assert equals expected date string t expected time string 0 date time time to icedate time known date true
tests date time formatting with milliseconds
public void test date format assert equals expected date string date time time to icedate known date
tests date formatting
public void test time format assert equals expected time string date time time to icetime known date false
tests time formatting without milliseconds
public void test time format millis assert equals expected time string 0 date time time to icetime known date true
tests time formatting with milliseconds
public void test parsing assert equals known date date time parse icedate time full date time string
tests date time string parsing
private string format item ref add type item ref item ref url access type ref item ref get reference string uri ref get url to string return a href uri uri a br
formats an item reference using html anchor tag
protected void store subscriber string subscriber id subscriber get uuid logger instance log logger debug logger prefix tw icesyndicator store subscriber storing subscriber subscriber id print writer out new persistence pstore dir get print writer subscriber id subscriber save out out close
asks the subscriber to store its information
private boolean is subscription push subscription type sub offer type offer sub get offer delivery policy type dp offer get delivery policy for int i 0 i dp get delivery rule length i delivery rule type rule dp get delivery rule i if rule get mode equals delivery rule type mode push return true return false
determine whether a subscription has any push delivery rules
private boolean is subscription pull subscription type sub offer type offer sub get offer delivery policy type dp offer get delivery policy for int i 0 i dp get delivery rule length i delivery rule type rule dp get delivery rule i if rule get mode equals delivery rule type mode pull return true return false
determine whether a subscription has any pull delivery rules