/** * Registers {@link AddOn} on this NetworkListener. * @param addon the {@link AddOn} to be registered. * * @return <tt>true</tt>, if the {@link AddOn} wasn't registered before, * otherwise the existing {@link AddOn} will be replaced and this method * returns <tt>false</tt>. */ public boolean registerAddOn(final AddOn addon) { return addons.add(addon); }
/** * Registers {@link AddOn} on this NetworkListener. * @param addon the {@link AddOn} to be registered. * * @return <tt>true</tt>, if the {@link AddOn} wasn't registered before, * otherwise the existing {@link AddOn} will be replaced and this method * returns <tt>false</tt>. */ public boolean registerAddOn(final AddOn addon) { return addons.add(addon); }
/** * Add the directory to the list of directories where files will be serviced from. * * @param docRoot the directory to be added to the list of directories * where files will be serviced from. */ public final void addDocRoot(File docRoot) { docRoots.add(docRoot); }
/** * Add the directory to the list of directories where files will be serviced from. * * @param docRoot the directory to be added to the list of directories * where files will be serviced from. */ public final void addDocRoot(File docRoot) { docRoots.add(docRoot); }
/** * <p> * Adds the specified {@link TransferEncoding} to the <code>HttpCodecFilter</code>. * </p> * * @param transferEncoding the {@link TransferEncoding} to add */ public void addTransferEncoding(final TransferEncoding transferEncoding) { transferEncodings.add(transferEncoding); }
/** * Add the directory to the list of directories where files will be serviced from. * * @param docRoot the directory to be added to the list of directories * where files will be serviced from. */ public final void addDocRoot(File docRoot) { docRoots.add(docRoot); }
/** * Add the directory to the list of directories where files will be serviced from. * * @param docRoot the directory to be added to the list of directories * where files will be serviced from. */ public final void addDocRoot(File docRoot) { docRoots.add(docRoot); }
/** * Add the directory to the list of directories where files will be serviced from. * * @param docRoot the directory to be added to the list of directories * where files will be serviced from. */ public final void addDocRoot(File docRoot) { docRoots.add(docRoot); }
/** * Registers {@link AddOn} on this NetworkListener. * @param addon the {@link AddOn} to be registered. * * @return <tt>true</tt>, if the {@link AddOn} wasn't registered before, * otherwise the existing {@link AddOn} will be replaced and this method * returns <tt>false</tt>. */ public boolean registerAddOn(final AddOn addon) { return addons.add(addon); }
/** * <p> * Adds the specified {@link TransferEncoding} to the <code>HttpCodecFilter</code>. * </p> * * @param transferEncoding the {@link TransferEncoding} to add */ public void addTransferEncoding(final TransferEncoding transferEncoding) { transferEncodings.add(transferEncoding); }
/** * Add the directory to the list of directories where files will be serviced from. * * @param docRoot the directory to be added to the list of directories * where files will be serviced from. */ public final void addDocRoot(File docRoot) { docRoots.add(docRoot); }
/** * Add the directory to the list of directories where files will be serviced from. * * @param docRoot the directory to be added to the list of directories * where files will be serviced from. */ public final void addDocRoot(File docRoot) { docRoots.add(docRoot); }
/** * Registers {@link AddOn} on this NetworkListener. * @param addon the {@link AddOn} to be registered. * * @return <tt>true</tt>, if the {@link AddOn} wasn't registered before, * otherwise the existing {@link AddOn} will be replaced and this method * returns <tt>false</tt>. */ public boolean registerAddOn(final AddOn addon) { return addons.add(addon); }
/** * <p> * Adds the specified {@link TransferEncoding} to the <code>HttpCodecFilter</code>. * </p> * * @param transferEncoding the {@link TransferEncoding} to add */ public void addTransferEncoding(final TransferEncoding transferEncoding) { transferEncodings.add(transferEncoding); }
/** * <p> * Adds the specified {@link ContentEncoding} to the <code>HttpCodecFilter</code>. * </p> * * @param contentEncoding the {@link ContentEncoding} to add */ public void addContentEncoding(final ContentEncoding contentEncoding) { contentEncodings.add(contentEncoding); }
/** * <p> * Adds the specified {@link ContentEncoding} to the <code>HttpCodecFilter</code>. * </p> * * @param contentEncoding the {@link ContentEncoding} to add */ public void addContentEncoding(final ContentEncoding contentEncoding) { contentEncodings.add(contentEncoding); }
/** * Registers new {@link PUProtocol}. * * @param puProtocol {@link PUProtocol} */ public void register(final PUProtocol puProtocol) { final Filter filter = puProtocol.getFilterChain().get(0); if (filter != backChannelFilter) { throw new IllegalStateException("The first Filter in the protocol should be the BackChannelFilter"); } protocols.add(puProtocol); }
/** * Registers new {@link PUProtocol}. * * @param puProtocol {@link PUProtocol} */ public void register(final PUProtocol puProtocol) { final Filter filter = puProtocol.getFilterChain().get(0); if (filter != backChannelFilter) { throw new IllegalStateException("The first Filter in the protocol should be the BackChannelFilter"); } protocols.add(puProtocol); }
/** * Registers new {@link PUProtocol}. * * @param puProtocol {@link PUProtocol} */ public void register(final PUProtocol puProtocol) { final Filter filter = puProtocol.getFilterChain().get(0); if (filter != backChannelFilter) { throw new IllegalStateException("The first Filter in the protocol should be the BackChannelFilter"); } protocols.add(puProtocol); }
/** * Registers new {@link PUProtocol}. * * @param puProtocol {@link PUProtocol} */ public void register(final PUProtocol puProtocol) { final Filter filter = puProtocol.getFilterChain().get(0); if (filter != backChannelFilter) { throw new IllegalStateException("The first Filter in the protocol should be the BackChannelFilter"); } protocols.add(puProtocol); }