Examples of Protocol


Examples of org.jibx.ws.protocol.Protocol

                    if (mediaType == null) {
                        mediaType = CodecDirectory.TEXT_XML_MEDIA_TYPE;
                    }
                    XmlCodec codec = m_codecCache.getCodec(mediaType);
                    IXMLReader reader = codec.getReader(m_dimeInput, null, m_clientAddress, false);
                    Protocol protocol = ProtocolDirectory.getProtocol(m_sdef.getProtocolName());
                    ServiceFactory serviceFactory = protocol.getServiceFactory();
                    serv = ServicePool.getInstance(serviceFactory, m_sdef);
                    serv.processRequest(new TcpInConnection(m_dimeInput, reader), new TcpOutConnection(codec,
                        serv.getXmlOptions()));
                    if (s_logger.isDebugEnabled()) {
                        s_logger.debug("Completed processing of receive message from " + m_clientAddress);
View Full Code Here

Examples of org.jibx.ws.protocol.Protocol

   
    protected Object configure(String path, String protocol, String reqtype, String[] rsptypes) {
        try {
            IBindingFactory fact = BindingDirectory.getFactory(Query.class);
            System.out.println("Connecting to service at " + path + " using protocol " + protocol);
            Protocol p = ProtocolDirectory.getProtocol(protocol);
            MessageOptions options = new MessageOptions();
            options.setOutMediaTypeCode(reqtype);
            options.setInMediaTypeCodes(rsptypes);
            return p.createClient(path, fact, options);
        } catch (Exception ex) {
            ex.printStackTrace(System.err);
            throw new RuntimeException("Error: " + ex.getMessage(), ex);
        }
    }
View Full Code Here

Examples of org.jibx.ws.protocol.Protocol

{
    /**
     * Test method for {@link org.jibx.ws.protocol.ProtocolDirectory#loadProtocol(java.lang.String)}.
     */
    public final void testLoadProtocol() {
        Protocol p = ProtocolDirectory.loadProtocol("org.jibx.ws.soap.SoapProtocol#SOAP1_1");
        assertSame(SoapProtocol.SOAP1_1, p);
    }
View Full Code Here

Examples of org.jivesoftware.util.Protocol

     */
    @Before
    public void setup() {

        // build protocol verifier
        protocol = new Protocol();

        // create mocked XMPP connection
        connection = ConnectionUtils.createMockedConnection(protocol, initiatorJID, xmppServer);

    }
View Full Code Here

Examples of org.jnetstream.protocol.Protocol

   */
  public PcapInputCapture(final ReadableByteChannel in, ByteOrder order,
      Filter<ProtocolFilterTarget> filter) throws IOException {
    super(in, order, headerReader, filter);

    Protocol protocol =
        PcapDLT.asConst(((PcapBlockRecord) block).getLinktype());

    setCaptureDevice(new DefaultCaptureDevice(protocol));

  }
View Full Code Here

Examples of org.jnetstream.protocol.Protocol

         */
        this.editor.close();
      }
    }

    final Protocol dlt = PcapDLT.asConst(block.getLinktype());
    setCaptureDevice(new DefaultCaptureDevice(dlt));

    if (logger.isDebugEnabled()) {
      logger.debug("editor=" + editor.getFlexRegion().toString());
    }
View Full Code Here

Examples of org.jnetstream.protocol.Protocol

   */
  public SnoopInputCapture(final InputStream in,
      Filter<ProtocolFilterTarget> filter) throws IOException {
    super(Channels.newChannel(in), ByteOrder.BIG_ENDIAN, headerReader, filter);

    Protocol protocol = SnoopDLT.asConst(((SnoopBlockRecord) block)
        .getLinktype());

    setCaptureDevice(new DefaultCaptureDevice(protocol));
  }
View Full Code Here

Examples of org.jnetstream.protocol.Protocol

   */
  public SnoopInputCapture(final ReadableByteChannel in,
      Filter<ProtocolFilterTarget> filter) throws IOException {
    super(in, ByteOrder.BIG_ENDIAN, headerReader, filter);

    Protocol protocol = SnoopDLT.asConst(((SnoopBlockRecord) block)
        .getLinktype());

    setCaptureDevice(new DefaultCaptureDevice(protocol));
  }
View Full Code Here

Examples of org.jnetstream.protocol.Protocol

         */
        this.editor.close();
      }
    }

    final Protocol dlt = SnoopDLT.asConst(block.getLinktype());
    setCaptureDevice(new DefaultCaptureDevice(dlt));

    if (logger.isDebugEnabled()) {
      logger.debug("edito=" + editor.getFlexRegion().toString());
    }
View Full Code Here

Examples of org.jnode.net.nfs.Protocol

        final File mountPoint = MOUNTPOINT_ARG.getValue();
        final InetAddress host = HOST_ARG.getAddress();
        final String remoteDirectory = HOST_ARG.getRemoteDirectory();

        // Choose the protocol (udp or tcp) the default value it is udp.
        final Protocol protocol =
                UDP_FLAG.isSet() ? Protocol.UDP : TCP_FLAG.isSet() ? Protocol.TCP : Protocol.UDP;

        int uid = USER_ID_ARG.isSet() ? USER_ID_ARG.getValue() : -1;
        int gid = GROUP_ID_ARG.isSet() ? GROUP_ID_ARG.getValue() : -1;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.