All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nico.cat.server.request.Request Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
package org.nico.cat.server.request;

import java.io.IOException;
import java.net.Socket;
import java.util.Map;

import org.nico.cat.server.request.buddy.RequestAssembler;
import org.nico.cat.server.request.extra.Cookie;
import org.nico.cat.server.request.extra.Resource;
import org.nico.cat.server.request.extra.Session;
import org.nico.cat.server.stream.ByteBuffer;

/** 
 * The client's request
 * 

* contains http agreement request details * @author nico * @version createTime:2018年1月4日 下午10:20:16 */ public class Request extends RequestAssembler{ private Socket client; private ByteBuffer byteBuffer; private Session session; private Map cookieMap; private Map resourceMap; { session = new Session(); } public Request() {} public Request(Socket client) throws IOException{ this.client = client; init(); } public void init() throws IOException{ this.byteBuffer = new ByteBuffer(client.getInputStream()); } public Map getResourceMap() { return resourceMap; } public void setResourceMap(Map resourceMap) { this.resourceMap = resourceMap; } public Map getCookieMap() { return cookieMap; } public void setCookieMap(Map cookieMap) { this.cookieMap = cookieMap; } public Session getSession() { return session; } public void setSession(Session session) { this.session = session; } public Socket getClient() { return client; } public Request setClient(Socket client) { this.client = client; return this; } public ByteBuffer getByteBuffer() { return byteBuffer; } public void setByteBuffer(ByteBuffer byteBuffer) { this.byteBuffer = byteBuffer; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy