Examples of Codec


Examples of ch.usi.dslab.bezerra.netwrapper.codecs.Codec

   public Message duplicate() {
      return new Message(this);
   }
  
   public Message deepDuplicate() {
      Codec codec = new CodecUncompressedKryo();
      Message copy = (Message) codec.deepDuplicate(this);
      return copy;
   }
View Full Code Here

Examples of com.alibaba.dubbo.remoting.Codec

        }
        super.disconnected(ch);
    }
   
    protected Codec getDownstreamCodec() {
        Codec downstreamCodec = getCodec();
        String downstreamCodecStr = getUrl().getParameter(Constants.DOWNSTREAM_CODEC_KEY);
        if(downstreamCodecStr != null ){
            downstreamCodec = ExtensionLoader.getExtensionLoader(Codec.class).getExtension(downstreamCodecStr);
        }
        return downstreamCodec;
View Full Code Here

Examples of com.apitrary.orm.core.codec.Codec

       */
      List<java.lang.reflect.Field> customEncodedProperties = ClassUtil.getAnnotatedFields(entity, com.apitrary.orm.core.annotations.Codec.class);
      for (java.lang.reflect.Field field : customEncodedProperties) {

        Class<? extends Codec> codecClazz = ClassUtil.getFieldAnnotationValue("value", field, com.apitrary.orm.core.annotations.Codec.class, Class.class);
        Codec codec = (Codec) ClassUtil.newInstance(codecClazz);

        Object value = ClassUtil.getValueOfField(field, entity);
        String stringValue = codec.encode(value);
        json = addNode(json, field.getName(), stringValue);
      }

      /*
       * Perform entity refs
View Full Code Here

Examples of com.dhemery.serializing.Codec

                String host = option(FRANK_HOST, DEFAULT_FRANK_HOST);
                int port = Integer.parseInt(option(FRANK_PORT, DEFAULT_FRANK_PORT));
                ResourceFactory resources = new URLResourceFactory();
                ResourceFactory publishingResources = new PublishingResourceFactory(publisher, resources);
                Endpoint endpoint = new ResourceFactoryBasedEndpoint(FRANK_ENDPOINT_PROTOCOL, host, port, publishingResources);
                Codec codec = new FranklyJsonCodec();
                return new PublishingFrank(publisher, new FranklyFrank(endpoint, codec));
            }
        };
    }
View Full Code Here

Examples of com.impossibl.postgres.types.Type.Codec

  private Object inOut(Type type, Format format, Object value) throws IOException, SQLException {

    value = coerceValue(type, format, value);

    Codec codec = type.getCodec(format);

    ByteBuf buffer = Unpooled.buffer();
    codec.encoder.encode(type, buffer, value, conn);
    Object res = codec.decoder.decode(type, null, null, buffer, conn);
View Full Code Here

Examples of com.robustaweb.library.security.Codec

   
    @Test
    public void testGetCodec() {

        //if isGwt
        Codec expected = null;
        assertFalse(MyRobusta.isGwt());
        assertEquals("bad codec when nothing set", expected, MyRobusta.getCodec());
        MyRobusta.setGwt(true, true);

        assertTrue("bad instance", MyRobusta.getCodec() instanceof CodecGwt);
View Full Code Here

Examples of com.sun.xml.internal.ws.api.pipe.Codec

     *
     * @param connection that carries the web service request
     * @throws IOException if an i/o error happens while encoding/decoding
     */
    protected void handle(final T connection) throws IOException {
        final Codec codec = codecPool.take();
        Packet request = decodePacket(connection, codec);
        if (!request.getMessage().isFault()) {
            endpoint.schedule(request, new WSEndpoint.CompletionCallback() {
                public void onCompletion(@NotNull Packet response) {
                    try {
View Full Code Here

Examples of com.sun.xml.ws.api.pipe.Codec

        Module modules = endpoint.getContainer().getSPI(com.sun.xml.ws.api.server.Module.class);
        //TODO document more here and increase performance.
        for(BoundEndpoint endPointObj : modules.getBoundEndpoints()){
          if(endPointObj.getEndpoint().getImplementationClass().equals(endpoint.getImplementationClass())
              && endPointObj.getEndpoint().getBinding().getBindingId() != binding.getBindingId()){
            Codec     codec     =  endPointObj.getEndpoint().createCodec();
            ContentType contentType =   codec.getStaticContentType(packet);
            if(contentType != null && contentType.getContentType().startsWith(packet.invocationProperties.get("accept").toString())){
              return endPointObj.getEndpoint().createCodec().getStaticContentType(packet);
            }
          }
        }
View Full Code Here

Examples of com.volantis.mcs.wbsax.Codec

                        "iso-8859-1");
        fac = configuration.getElementNameFactory();
        asf = configuration.getAttributeStartFactory();
       
        StringTable stringTable = new StringTable();
        StringFactory strings = new StringFactory(new Codec(charsetCode));
        StringReferenceFactory references =
                new StringReferenceFactory(stringTable, strings);
       
        context = new WBSAXProcessorContext(fac, asf, strings, references,
                        encoding, stringTable, configuration);
View Full Code Here

Examples of httl.spi.Codec

  public void setImportPackages(String[] importPackages) {
    this.importPackages = importPackages;
  }

  private Codec getAndCheckCodec(String format) {
    Codec codec = codecs.get(format);
    if (codec == null) {
      throw new IllegalStateException("Unsupported encode format " + format + ", please add config codecs+=com.your." + format + "Codec" + " in httl.properties.");
    }
    return codec;
  }
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.